diff --git a/mxcubeweb/core/adapter/detector_adapter.py b/mxcubeweb/core/adapter/detector_adapter.py index 320250df7..47aa846d6 100644 --- a/mxcubeweb/core/adapter/detector_adapter.py +++ b/mxcubeweb/core/adapter/detector_adapter.py @@ -47,7 +47,7 @@ def display_image(self, params: DisplayImageParams) -> dict: if path: fpath, img = HWR.beamline.detector.get_actual_file_path(path, img_num) - HWR.beamline.collect.adxv_notify(fpath, img) + HWR.beamline.collect.display_image(fpath, img) fpath = HWR.beamline.session.get_path_with_proposal_as_root(fpath) if self.app.CONFIG.braggy is not None and self.app.CONFIG.braggy.USE_BRAGGY: diff --git a/ui/src/actions/general.js b/ui/src/actions/general.js index 8f63db05a..5abbee25d 100644 --- a/ui/src/actions/general.js +++ b/ui/src/actions/general.js @@ -44,6 +44,8 @@ export function displayImage(path, imgNum) { 'display_image', { path, img_num: imgNum }, ); - window.open(data.image_url, 'braggy'); + if (data.image_url) { + window.open(data.image_url, 'braggy'); + } }; }