From b101e4efe33c1cd91337d5d13708db77be27d377 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <p.gawron@atcomp.pl> Date: Wed, 13 Nov 2024 14:59:37 +0100 Subject: [PATCH 1/4] add hr bar and deault compartment name --- CHANGELOG | 5 +++++ .../BioEntityDrawer/BioEntityDrawer.component.tsx | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 0aea267c..f061ffb2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +minerva-front (18.0.3) stable; urgency=medium + * Bug fix: mwhen compartment is missing "default" is added (#314) + + -- Piotr Gawron <piotr.gawron@uni.lu> Thu, 11 Nov 2024 15:00:00 +0200 + minerva-front (18.0.3) stable; urgency=medium * Bug fix: Molart froze after clicking (#313) * Bug fix: missing description and modifications added to element and diff --git a/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx b/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx index 86dec734..14fc5449 100644 --- a/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx +++ b/src/components/Map/Drawer/BioEntityDrawer/BioEntityDrawer.component.tsx @@ -60,14 +60,22 @@ export const BioEntityDrawer = (): React.ReactNode => { /> <div className="flex max-h-full flex-col gap-6 overflow-y-auto p-6"> <div className="text-sm font-normal"> - Compartment: <b className="font-semibold">{bioEntityData.compartmentName}</b> + Compartment:{' '} + <b className="font-semibold"> + {bioEntityData.compartmentName ? bioEntityData.compartmentName : 'default'} + </b> </div> {bioEntityData.fullName && ( <div className="text-sm font-normal"> Full name: <b className="font-semibold">{bioEntityData.fullName}</b> </div> )} - {bioEntityData.notes && <div className="text-sm font-normal">{bioEntityData.notes}</div>} + {bioEntityData.notes && ( + <span> + <hr className="border-b border-b-divide" /> + <div className="text-sm font-normal">{bioEntityData.notes}</div> + </span> + )} {isModificationAvailable && ( <h3 className="font-semibold">Post-translational modifications:</h3> )} -- GitLab From 574d0349db536fbd4db996d6dae56603d3da770a Mon Sep 17 00:00:00 2001 From: Piotr Gawron <p.gawron@atcomp.pl> Date: Thu, 21 Nov 2024 11:24:05 +0100 Subject: [PATCH 2/4] search link is working properly --- CHANGELOG | 8 +++++--- .../OverviewImageModal.types.ts | 8 +++++++- .../utils/useOverviewImageLinkActions.ts | 20 ++++++++++++++++++- src/models/overviewImageLink.ts | 13 +++++++++++- src/types/models.ts | 2 ++ 5 files changed, 45 insertions(+), 6 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index f061ffb2..62ff5d3a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,7 +1,9 @@ -minerva-front (18.0.3) stable; urgency=medium - * Bug fix: mwhen compartment is missing "default" is added (#314) +minerva-front (18.0.4) stable; urgency=medium + * Bug fix: link to search result from overview image caused map not to + load (#318) + * Bug fix: when compartment is missing "default" is added (#314) - -- Piotr Gawron <piotr.gawron@uni.lu> Thu, 11 Nov 2024 15:00:00 +0200 + -- Piotr Gawron <piotr.gawron@uni.lu> Mon, 11 Nov 2024 15:00:00 +0200 minerva-front (18.0.3) stable; urgency=medium * Bug fix: Molart froze after clicking (#313) diff --git a/src/components/FunctionalArea/Modal/OverviewImagesModal/OverviewImageModal.types.ts b/src/components/FunctionalArea/Modal/OverviewImagesModal/OverviewImageModal.types.ts index a09968c6..8575ee97 100644 --- a/src/components/FunctionalArea/Modal/OverviewImagesModal/OverviewImageModal.types.ts +++ b/src/components/FunctionalArea/Modal/OverviewImagesModal/OverviewImageModal.types.ts @@ -1,4 +1,8 @@ -import { OverviewImageLinkImage, OverviewImageLinkModel } from '@/types/models'; +import { + OverviewImageLinkImage, + OverviewImageLinkModel, + OverviewImageLinkSearch, +} from '@/types/models'; export interface OverviewImageSize { width: number; @@ -26,3 +30,5 @@ export interface OverviewImageLinkConfig { export type OverviewImageLinkImageHandler = (link: OverviewImageLinkImage) => void; export type OverviewImageLinkModelHandler = (link: OverviewImageLinkModel) => void; + +export type OverviewImageLinkSearchHandler = (link: OverviewImageLinkSearch) => void; diff --git a/src/components/FunctionalArea/Modal/OverviewImagesModal/utils/useOverviewImageLinkActions.ts b/src/components/FunctionalArea/Modal/OverviewImagesModal/utils/useOverviewImageLinkActions.ts index 5059ea59..aea233de 100644 --- a/src/components/FunctionalArea/Modal/OverviewImagesModal/utils/useOverviewImageLinkActions.ts +++ b/src/components/FunctionalArea/Modal/OverviewImagesModal/utils/useOverviewImageLinkActions.ts @@ -1,4 +1,4 @@ -import { NOOP } from '@/constants/common'; +import { NOOP, ZERO } from '@/constants/common'; import { useAppDispatch } from '@/redux/hooks/useAppDispatch'; import { useAppSelector } from '@/redux/hooks/useAppSelector'; import { mapOpenedMapsSelector } from '@/redux/map/map.selectors'; @@ -8,9 +8,12 @@ import { currentModelIdSelector, modelsDataSelector } from '@/redux/models/model import { projectOverviewImagesSelector } from '@/redux/project/project.selectors'; import { PluginsEventBus } from '@/services/pluginsManager/pluginsEventBus'; import { MapModel, OverviewImageLink, OverviewImageLinkModel } from '@/types/models'; +import { getSearchData } from '@/redux/search/search.thunks'; +import { openSearchDrawerWithSelectedTab } from '@/redux/drawer/drawer.slice'; import { OverviewImageLinkImageHandler, OverviewImageLinkModelHandler, + OverviewImageLinkSearchHandler, } from '../OverviewImageModal.types'; interface UseOverviewImageLinkActionsResult { @@ -75,6 +78,16 @@ export const useOverviewImageLinkActions = (): UseOverviewImageLinkActionsResult dispatch(closeModal()); }; + const onSearchClick: OverviewImageLinkSearchHandler = link => { + const { query } = link; + + const searchValues = query.split(','); + dispatch(getSearchData({ searchQueries: searchValues, isPerfectMatch: false })); + dispatch(openSearchDrawerWithSelectedTab(searchValues[ZERO])); + + dispatch(closeModal()); + }; + const onImageClick: OverviewImageLinkImageHandler = link => { const isImageAvailable = checkIfImageIsAvailable(link.imageLinkId); if (!isImageAvailable) { @@ -87,6 +100,7 @@ export const useOverviewImageLinkActions = (): UseOverviewImageLinkActionsResult const handleLinkClick: UseOverviewImageLinkActionsResult['handleLinkClick'] = link => { const isImageLink = 'imageLinkId' in link; const isModelLink = 'modelLinkId' in link; + const isSearchLink = 'query' in link; if (isImageLink) { return onImageClick(link); @@ -96,6 +110,10 @@ export const useOverviewImageLinkActions = (): UseOverviewImageLinkActionsResult return onSubmapClick(link); } + if (isSearchLink) { + return onSearchClick(link); + } + return NOOP(); }; diff --git a/src/models/overviewImageLink.ts b/src/models/overviewImageLink.ts index 6a36667a..8d35e3ef 100644 --- a/src/models/overviewImageLink.ts +++ b/src/models/overviewImageLink.ts @@ -17,4 +17,15 @@ export const overviewImageLinkModel = z.object({ type: z.string(), }); -export const overviewImageLink = z.union([overviewImageLinkImage, overviewImageLinkModel]); +export const overviewImageLinkSearch = z.object({ + idObject: z.number(), + polygon: z.array(positionSchema), + query: z.string(), + type: z.string(), +}); + +export const overviewImageLink = z.union([ + overviewImageLinkImage, + overviewImageLinkModel, + overviewImageLinkSearch, +]); diff --git a/src/types/models.ts b/src/types/models.ts index 565b1830..a43b77bc 100644 --- a/src/types/models.ts +++ b/src/types/models.ts @@ -44,6 +44,7 @@ import { overviewImageLink, overviewImageLinkImage, overviewImageLinkModel, + overviewImageLinkSearch, } from '@/models/overviewImageLink'; import { overviewImageView } from '@/models/overviewImageView'; import { pluginSchema } from '@/models/pluginSchema'; @@ -72,6 +73,7 @@ export type OverviewImageView = z.infer<typeof overviewImageView>; export type OverviewImageLink = z.infer<typeof overviewImageLink>; export type OverviewImageLinkImage = z.infer<typeof overviewImageLinkImage>; export type OverviewImageLinkModel = z.infer<typeof overviewImageLinkModel>; +export type OverviewImageLinkSearch = z.infer<typeof overviewImageLinkSearch>; export type MapModel = z.infer<typeof mapModelSchema>; export type MapOverlay = z.infer<typeof mapOverlay>; export type MapBackground = z.infer<typeof mapBackground>; -- GitLab From b6a56c7969054fd6e55d2f1e4d6e2d54006acb85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Grocholewski?= <m.grocholewski@atcomp.pl> Date: Wed, 27 Nov 2024 14:39:52 +0100 Subject: [PATCH 3/4] fix(data overlays): prevent clearing submapConnections by adding new reducer --- CHANGELOG | 6 ++++++ .../ClearAnchorsButton.component.test.tsx | 4 ++-- .../ClearAnchorsButton/ClearAnchorsButton.component.tsx | 4 ++-- .../listeners/mapSingleClick/handleAliasResults.test.ts | 4 ++-- .../utils/listeners/mapSingleClick/handleAliasResults.ts | 4 ++-- .../listeners/mapSingleClick/handleReactionResults.test.ts | 4 ++-- .../mapSingleClick/handleReactionSearchClickFailure.ts | 4 ++-- src/redux/bioEntity/bioEntity.reducers.ts | 4 +--- src/redux/bioEntity/bioEntity.slice.ts | 6 +++--- src/redux/search/search.thunks.ts | 3 --- src/services/pluginsManager/bioEntities/clearAllElements.ts | 4 ++-- 11 files changed, 24 insertions(+), 23 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 62ff5d3a..164d4397 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,9 @@ +minerva-front (18.0.5) stable; urgency=medium + * Bug fix: anchor overlays were disappearing after clicking on anchor and + outside of the anchor (#319) + + -- Piotr Gawron <piotr.gawron@uni.lu> Wed, 27 Nov 2024 13:00:00 +0200 + minerva-front (18.0.4) stable; urgency=medium * Bug fix: link to search result from overview image caused map not to load (#318) diff --git a/src/components/FunctionalArea/TopBar/ClearAnchorsButton/ClearAnchorsButton.component.test.tsx b/src/components/FunctionalArea/TopBar/ClearAnchorsButton/ClearAnchorsButton.component.test.tsx index 0180c8a6..b8bc885a 100644 --- a/src/components/FunctionalArea/TopBar/ClearAnchorsButton/ClearAnchorsButton.component.test.tsx +++ b/src/components/FunctionalArea/TopBar/ClearAnchorsButton/ClearAnchorsButton.component.test.tsx @@ -49,7 +49,7 @@ describe('ClearAnchorsButton - component', () => { { payload: undefined, type: 'contextMenu/closeContextMenu' }, { payload: undefined, type: 'reactions/resetReactionsData' }, { payload: undefined, type: 'search/clearSearchData' }, - { payload: undefined, type: 'bioEntityContents/clearBioEntitiesData' }, + { payload: undefined, type: 'bioEntityContents/clearBioEntities' }, { payload: undefined, type: 'drugs/clearDrugsData' }, { payload: undefined, type: 'chemicals/clearChemicalsData' }, ]); @@ -75,7 +75,7 @@ describe('ClearAnchorsButton - component', () => { { payload: undefined, type: 'contextMenu/closeContextMenu' }, { payload: undefined, type: 'reactions/resetReactionsData' }, { payload: undefined, type: 'search/clearSearchData' }, - { payload: undefined, type: 'bioEntityContents/clearBioEntitiesData' }, + { payload: undefined, type: 'bioEntityContents/clearBioEntities' }, { payload: undefined, type: 'drugs/clearDrugsData' }, { payload: undefined, type: 'chemicals/clearChemicalsData' }, ]); diff --git a/src/components/FunctionalArea/TopBar/ClearAnchorsButton/ClearAnchorsButton.component.tsx b/src/components/FunctionalArea/TopBar/ClearAnchorsButton/ClearAnchorsButton.component.tsx index 3be4a770..0cb34178 100644 --- a/src/components/FunctionalArea/TopBar/ClearAnchorsButton/ClearAnchorsButton.component.tsx +++ b/src/components/FunctionalArea/TopBar/ClearAnchorsButton/ClearAnchorsButton.component.tsx @@ -1,4 +1,4 @@ -import { clearBioEntitiesData } from '@/redux/bioEntity/bioEntity.slice'; +import { clearBioEntities } from '@/redux/bioEntity/bioEntity.slice'; import { clearChemicalsData } from '@/redux/chemicals/chemicals.slice'; import { closeContextMenu } from '@/redux/contextMenu/contextMenu.slice'; import { resultDrawerOpen } from '@/redux/drawer/drawer.selectors'; @@ -31,7 +31,7 @@ export const ClearAnchorsButton = (): React.ReactNode => { dispatch(clearSearchData()); // Reset old pins data - dispatch(clearBioEntitiesData()); + dispatch(clearBioEntities()); dispatch(clearDrugsData()); dispatch(clearChemicalsData()); }; diff --git a/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleAliasResults.test.ts b/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleAliasResults.test.ts index aae76f61..85fc7dc1 100644 --- a/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleAliasResults.test.ts +++ b/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleAliasResults.test.ts @@ -79,7 +79,7 @@ describe('handleAliasResults - util', () => { 'project/getBioEntityById/fulfilled', 'entityNumber/addNumbersToEntityNumberData', 'project/getMultiBioEntity/fulfilled', - 'bioEntityContents/clearBioEntitiesData', + 'bioEntityContents/clearBioEntities', ]); }); }); @@ -120,7 +120,7 @@ describe('handleAliasResults - util', () => { 'entityNumber/addNumbersToEntityNumberData', 'project/getMultiBioEntity/fulfilled', 'drawer/closeDrawer', - 'bioEntityContents/clearBioEntitiesData', + 'bioEntityContents/clearBioEntities', ]); }); }); diff --git a/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleAliasResults.ts b/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleAliasResults.ts index 02c8312e..c3d05aba 100644 --- a/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleAliasResults.ts +++ b/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleAliasResults.ts @@ -3,7 +3,7 @@ import { AppDispatch } from '@/redux/store'; import { searchFitBounds } from '@/services/pluginsManager/map/triggerSearch/searchFitBounds'; import { ElementSearchResult } from '@/types/models'; import { PluginsEventBus } from '@/services/pluginsManager/pluginsEventBus'; -import { clearBioEntitiesData } from '@/redux/bioEntity/bioEntity.slice'; +import { clearBioEntities } from '@/redux/bioEntity/bioEntity.slice'; import { Point } from '@/types/map'; import { getMultiBioEntityByIds } from '@/redux/bioEntity/thunks/getMultiBioEntity'; import { findClosestBioEntityPoint } from './findClosestBioEntityPoint'; @@ -37,7 +37,7 @@ export const handleAliasResults = dispatch(closeDrawer()); } - dispatch(clearBioEntitiesData()); + dispatch(clearBioEntities()); return; } } diff --git a/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleReactionResults.test.ts b/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleReactionResults.test.ts index cdd0e68d..6fef43df 100644 --- a/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleReactionResults.test.ts +++ b/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleReactionResults.test.ts @@ -212,7 +212,7 @@ describe('handleReactionResults - util', () => { 'reactions/getByIds/fulfilled', 'drawer/closeDrawer', 'reactions/resetReactionsData', - 'bioEntityContents/clearBioEntitiesData', + 'bioEntityContents/clearBioEntities', ]); }); @@ -235,7 +235,7 @@ describe('handleReactionResults - util', () => { expect(dispatchSpy).toHaveBeenCalledWith({ payload: undefined, - type: 'bioEntityContents/clearBioEntitiesData', + type: 'bioEntityContents/clearBioEntities', }); }); }); diff --git a/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleReactionSearchClickFailure.ts b/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleReactionSearchClickFailure.ts index 7368bb18..30c6178f 100644 --- a/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleReactionSearchClickFailure.ts +++ b/src/components/Map/MapViewer/utils/listeners/mapSingleClick/handleReactionSearchClickFailure.ts @@ -1,7 +1,7 @@ import { AppDispatch } from '@/redux/store'; import { closeDrawer } from '@/redux/drawer/drawer.slice'; import { resetReactionsData } from '@/redux/reactions/reactions.slice'; -import { clearBioEntitiesData } from '@/redux/bioEntity/bioEntity.slice'; +import { clearBioEntities } from '@/redux/bioEntity/bioEntity.slice'; export const handleReactionSearchClickFailure = ( dispatch: AppDispatch, @@ -11,5 +11,5 @@ export const handleReactionSearchClickFailure = ( dispatch(closeDrawer()); } dispatch(resetReactionsData()); - dispatch(clearBioEntitiesData()); + dispatch(clearBioEntities()); }; diff --git a/src/redux/bioEntity/bioEntity.reducers.ts b/src/redux/bioEntity/bioEntity.reducers.ts index 3f68a154..681595c0 100644 --- a/src/redux/bioEntity/bioEntity.reducers.ts +++ b/src/redux/bioEntity/bioEntity.reducers.ts @@ -107,11 +107,9 @@ export const getSubmapConnectionsBioEntityReducer = ( }); }; -export const clearBioEntitiesDataReducer = (state: BioEntityContentsState): void => { +export const clearBioEntitiesReducer = (state: BioEntityContentsState): void => { state.data = []; state.loading = 'idle'; - - state.submapConnections = BIOENTITY_SUBMAP_CONNECTIONS_INITIAL_STATE; }; export const toggleIsContentTabOpenedReducer = ( diff --git a/src/redux/bioEntity/bioEntity.slice.ts b/src/redux/bioEntity/bioEntity.slice.ts index 728467a9..6ccf3f2f 100644 --- a/src/redux/bioEntity/bioEntity.slice.ts +++ b/src/redux/bioEntity/bioEntity.slice.ts @@ -1,7 +1,7 @@ import { createSlice } from '@reduxjs/toolkit'; import { BIOENTITY_INITIAL_STATE } from './bioEntity.constants'; import { - clearBioEntitiesDataReducer, + clearBioEntitiesReducer, getBioEntityContentsReducer, getMultiBioEntityContentsReducer, getSubmapConnectionsBioEntityReducer, @@ -12,7 +12,7 @@ export const bioEntityContentsSlice = createSlice({ name: 'bioEntityContents', initialState: BIOENTITY_INITIAL_STATE, reducers: { - clearBioEntitiesData: clearBioEntitiesDataReducer, + clearBioEntities: clearBioEntitiesReducer, toggleIsContentTabOpened: toggleIsContentTabOpenedReducer, }, extraReducers: builder => { @@ -22,6 +22,6 @@ export const bioEntityContentsSlice = createSlice({ }, }); -export const { clearBioEntitiesData, toggleIsContentTabOpened } = bioEntityContentsSlice.actions; +export const { clearBioEntities, toggleIsContentTabOpened } = bioEntityContentsSlice.actions; export default bioEntityContentsSlice.reducer; diff --git a/src/redux/search/search.thunks.ts b/src/redux/search/search.thunks.ts index 5d1e36e8..b95730d2 100644 --- a/src/redux/search/search.thunks.ts +++ b/src/redux/search/search.thunks.ts @@ -9,7 +9,6 @@ import { resetReactionsData } from '../reactions/reactions.slice'; import type { RootState } from '../store'; import { DATA_SEARCHING_ERROR_PREFIX } from './search.constants'; import { dispatchPluginsEvents } from './search.thunks.utils'; -import { getSubmapConnectionsBioEntity } from '../bioEntity/thunks/getSubmapConnectionsBioEntity'; type GetSearchDataProps = PerfectMultiSearchParams; @@ -34,13 +33,11 @@ export const getSearchData = createAsyncThunk< dispatch(getMultiBioEntity({ searchQueries, isPerfectMatch })), dispatch(getMultiDrugs(searchQueries)), dispatch(getMultiChemicals(searchQueries)), - dispatch(getSubmapConnectionsBioEntity()), ]); } else { await Promise.all([ dispatch(getMultiBioEntity({ searchQueries, isPerfectMatch })), dispatch(getMultiDrugs(searchQueries)), - dispatch(getSubmapConnectionsBioEntity()), ]); } diff --git a/src/services/pluginsManager/bioEntities/clearAllElements.ts b/src/services/pluginsManager/bioEntities/clearAllElements.ts index 9177d501..ce8a4ee7 100644 --- a/src/services/pluginsManager/bioEntities/clearAllElements.ts +++ b/src/services/pluginsManager/bioEntities/clearAllElements.ts @@ -1,4 +1,4 @@ -import { clearBioEntitiesData } from '@/redux/bioEntity/bioEntity.slice'; +import { clearBioEntities } from '@/redux/bioEntity/bioEntity.slice'; import { clearChemicalsData } from '@/redux/chemicals/chemicals.slice'; import { clearDrugsData } from '@/redux/drugs/drugs.slice'; import { setMarkersData } from '@/redux/markers/markers.slice'; @@ -10,7 +10,7 @@ export const clearAllElements = (elements: ElementName[]): void => { const { dispatch } = store; if (elements.includes('content')) { - dispatch(clearBioEntitiesData()); + dispatch(clearBioEntities()); } if (elements.includes('chemicals')) { -- GitLab From 34512fbab9eb155c017f1133c580311ec0ee3165 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <p.gawron@atcomp.pl> Date: Thu, 28 Nov 2024 07:20:28 +0100 Subject: [PATCH 4/4] fix types --- src/models/overviewImageLink.ts | 1 + src/redux/bioEntity/bioEntity.reducers.ts | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/models/overviewImageLink.ts b/src/models/overviewImageLink.ts index 69d168ad..0bd5c4cb 100644 --- a/src/models/overviewImageLink.ts +++ b/src/models/overviewImageLink.ts @@ -19,6 +19,7 @@ export const overviewImageLinkModel = z.object({ }); export const overviewImageLinkSearch = z.object({ + id: z.number(), idObject: z.number(), polygon: z.array(positionSchema), query: z.string(), diff --git a/src/redux/bioEntity/bioEntity.reducers.ts b/src/redux/bioEntity/bioEntity.reducers.ts index b24046b9..bab876f9 100644 --- a/src/redux/bioEntity/bioEntity.reducers.ts +++ b/src/redux/bioEntity/bioEntity.reducers.ts @@ -113,11 +113,6 @@ export const clearBioEntitiesReducer = (state: BioEntityContentsState): void => state.loading = 'idle'; }; -export const clearBioEntitiesReducer = (state: BioEntityContentsState): void => { - state.data = []; - state.loading = 'idle'; -}; - export const toggleIsContentTabOpenedReducer = ( state: BioEntityContentsState, action: PayloadAction<boolean>, -- GitLab