Skip to content

Commit

Permalink
Merge pull request #2755 from okauppinen/statsgrid-fixes
Browse files Browse the repository at this point in the history
Statsgrid fixes
  • Loading branch information
ZakarFin authored Dec 2, 2024
2 parents eb8fa83 + c798bc3 commit c124843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bundles/statistics/statsgrid/handler/IndicatorHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
2 changes: 1 addition & 1 deletion bundles/statistics/statsgrid/view/Form/StatisticalData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const StatisticalData = ({ state, controller }) => {
render: (title, item) => {
return (
<TextInput
value={item.value || ''}
value={item.value}
onChange={(e) => controller.updateRegionValue(item.key, e.target.value)}
/>
);
Expand Down

0 comments on commit c124843

Please sign in to comment.