Skip to content
Snippets Groups Projects
Commit f9323a69 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '353-minervanet-error-report-14597' into 'main'

Resolve "MINERVANET - Error Report 14597"

See merge request !419
parents 1cad3865 0684886e
No related branches found
No related tags found
2 merge requests!450Resolve "Parts missing when uploaded new project",!419Resolve "MINERVANET - Error Report 14597"
Pipeline #102417 passed
minerva-front (18.2.0) stable; urgency=medium
* Bug fix: passing invalid overlay in the url params threw an error (#353)
-- Piotr Gawron <piotr.gawron@uni.lu> Thu, 06 Mar 2025 17:00:00 +0200
minerva-front (18.1.1) stable; urgency=medium minerva-front (18.1.1) stable; urgency=medium
* Bug fix: styling of notes reset only for a href (#334) * Bug fix: styling of notes reset only for a href (#334)
* Bug fix: disable searching for chemicals in projects without disease (#347) * Bug fix: disable searching for chemicals in projects without disease (#347)
......
...@@ -5,6 +5,7 @@ import { OverlayBioEntityRender } from '@/types/OLrendering'; ...@@ -5,6 +5,7 @@ import { OverlayBioEntityRender } from '@/types/OLrendering';
import { PluginsEventBus } from '@/services/pluginsManager/pluginsEventBus'; import { PluginsEventBus } from '@/services/pluginsManager/pluginsEventBus';
import { ThunkConfig } from '@/types/store'; import { ThunkConfig } from '@/types/store';
import { getError } from '@/utils/error-report/getError'; import { getError } from '@/utils/error-report/getError';
import { showToast } from '@/utils/showToast';
import { import {
getValidOverlayBioEntities, getValidOverlayBioEntities,
parseOverlayBioEntityToOlRenderingFormat, parseOverlayBioEntityToOlRenderingFormat,
...@@ -101,9 +102,13 @@ export const getInitOverlays = createAsyncThunk< ...@@ -101,9 +102,13 @@ export const getInitOverlays = createAsyncThunk<
if (eventData) { if (eventData) {
PluginsEventBus.dispatchEvent('onShowOverlay', eventData); PluginsEventBus.dispatchEvent('onShowOverlay', eventData);
dispatch(getOverlayBioEntityForAllModels({ overlayId: id }));
} else {
showToast({
type: 'error',
message: `Overlay passed in the url does not exist (overlayId: ${id})`,
});
} }
dispatch(getOverlayBioEntityForAllModels({ overlayId: id }));
}); });
} catch (error) { } catch (error) {
return Promise.reject(getError({ error, prefix: INIT_OVERLAYS_ERROR_PREFIX })); return Promise.reject(getError({ error, prefix: INIT_OVERLAYS_ERROR_PREFIX }));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment