From 22733802af6bee4fe8521803f92611fee3c02cd3 Mon Sep 17 00:00:00 2001 From: Lorenzo Natali Date: Fri, 26 Feb 2021 16:56:37 +0100 Subject: [PATCH] #96 ReSync selection on new tab (#105) --- js/extension/epics/layerSync.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/extension/epics/layerSync.js b/js/extension/epics/layerSync.js index 9563abd..3b54830 100644 --- a/js/extension/epics/layerSync.js +++ b/js/extension/epics/layerSync.js @@ -14,7 +14,8 @@ import { SET_LAYER_STYLE, SET_STYLES, ZOOM_TO_RESULTS, - UPDATE_LAYER_STYLE + UPDATE_LAYER_STYLE, + ADD_PLOT_SELECTION } from '../actions/cadastrapp'; import { getCurrentPlotFeatures, @@ -32,7 +33,7 @@ import { export const syncLayerForPlots = (action$, {getState = () => {}})=> - action$.ofType(SETUP_COMPLETED, ADD_PLOTS, REMOVE_PLOTS, SET_ACTIVE_PLOT_SELECTION, REMOVE_PLOT_SELECTION, SELECT_PLOTS, DESELECT_PLOTS, SET_LAYER_STYLE, SET_STYLES, UPDATE_LAYER_STYLE) // actions that modify the layer, so it needs an update. + action$.ofType(SETUP_COMPLETED, ADD_PLOT_SELECTION, ADD_PLOTS, REMOVE_PLOTS, SET_ACTIVE_PLOT_SELECTION, REMOVE_PLOT_SELECTION, SELECT_PLOTS, DESELECT_PLOTS, SET_LAYER_STYLE, SET_STYLES, UPDATE_LAYER_STYLE) // actions that modify the layer, so it needs an update. .switchMap(() => { const features = getCurrentPlotFeatures(getState()); const options = getCadastrappVectorLayer(getState());