diff --git a/bundles/statistics/statsgrid/handler/IndicatorHelper.js b/bundles/statistics/statsgrid/handler/IndicatorHelper.js index c296bb5d80..92a7e006d5 100644 --- a/bundles/statistics/statsgrid/handler/IndicatorHelper.js +++ b/bundles/statistics/statsgrid/handler/IndicatorHelper.js @@ -283,6 +283,9 @@ export const saveIndicatorData = async (indicator, data, regionsetId) => { // Flush cache as update is implemented only for quest user removeIndicatorFromCache({ ds: indicator.ds }); flushIndicatorMetadataCache(indicator); + // remove selections and regionset related data (one dataset) + const cacheKey = getDataCacheKey(indicator, regionsetId); + delete indicatorDataStore[cacheKey]; } catch (error) { throw new Error('Error saving data to server'); } diff --git a/bundles/statistics/statsgrid/view/Form/StatisticalData.jsx b/bundles/statistics/statsgrid/view/Form/StatisticalData.jsx index aac14d8cda..cc6ebe5993 100644 --- a/bundles/statistics/statsgrid/view/Form/StatisticalData.jsx +++ b/bundles/statistics/statsgrid/view/Form/StatisticalData.jsx @@ -35,7 +35,7 @@ export const StatisticalData = ({ state, controller }) => { render: (title, item) => { return ( controller.updateRegionValue(item.key, e.target.value)} /> );