Skip to content
Snippets Groups Projects
Commit 32fe1927 authored by esikkala's avatar esikkala
Browse files

Clear instance data on map bounds reset

parent 2ea08001
No related branches found
No related tags found
No related merge requests found
...@@ -13,13 +13,16 @@ export const fetchResults = (state, action, initialState) => { ...@@ -13,13 +13,16 @@ export const fetchResults = (state, action, initialState) => {
} }
return { return {
...state, ...state,
instance: null,
instanceTableExternalData: null, instanceTableExternalData: null,
...(resetMapBounds && { maps: initialState.maps }), ...(resetMapBounds && {
maps: initialState.maps,
instanceTableData: null
}),
...(action.order == null && { ...(action.order == null && {
fetching: true, fetching: true,
resultUpdateID: 0 resultUpdateID: 0
}), }),
// special case for two simultaneus ApexCharts components:
...(action.order && { ...(action.order && {
[`${action.order}Fetching`]: true, [`${action.order}Fetching`]: true,
[`${action.order}ResultUpdateID`]: 0 [`${action.order}ResultUpdateID`]: 0
......
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