diff --git a/ui/src/actions/general.js b/ui/src/actions/general.js index 1924f354f..511d68f86 100644 --- a/ui/src/actions/general.js +++ b/ui/src/actions/general.js @@ -363,8 +363,6 @@ export function sendDisplayImage(path, imgNum) { ) .then((response) => response.json()) .then((data) => { - let braggyPath = data.path.replace('/data/visitor/', ''); - braggyPath = braggyPath.split('/').slice(1).join('/'); window.open( `https://braggy.mxcube3.esrf.fr/?file=${braggyPath}/image_${data.img_num}.h5.dataset`, 'braggy',