From 9351aa518e6a764469e80499b405a1c4cac60668 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Mon, 22 Jan 2024 11:19:41 +0100 Subject: [PATCH] fix: do not prefix with stage id for time dimensions --- src/components/Dialogs/PeriodDimension/PeriodDimension.js | 1 - src/modules/metadata.js | 1 - src/reducers/ui.js | 1 - 3 files changed, 3 deletions(-) diff --git a/src/components/Dialogs/PeriodDimension/PeriodDimension.js b/src/components/Dialogs/PeriodDimension/PeriodDimension.js index 1d504e93b..d3912f0ce 100644 --- a/src/components/Dialogs/PeriodDimension/PeriodDimension.js +++ b/src/components/Dialogs/PeriodDimension/PeriodDimension.js @@ -132,7 +132,6 @@ export const PeriodDimension = ({ dimension, onClose }) => { (acc, item) => { const itemId = formatDimensionId({ dimensionId: item.id, - programStageId: null, programId, outputType: inputType, }) diff --git a/src/modules/metadata.js b/src/modules/metadata.js index d0f3327b3..8da3b0c1b 100644 --- a/src/modules/metadata.js +++ b/src/modules/metadata.js @@ -79,7 +79,6 @@ export const getDynamicTimeDimensionsMetadata = ( ...Object.values(getTimeDimensions()).reduce((acc, dimension) => { const id = formatDimensionId({ dimensionId: dimension.id, - programStageId: stage?.id, programId: program?.id, outputType: inputType, }) diff --git a/src/reducers/ui.js b/src/reducers/ui.js index ae582ca38..c44e24f6e 100644 --- a/src/reducers/ui.js +++ b/src/reducers/ui.js @@ -493,7 +493,6 @@ export const useProgramDimensions = () => { const getId = (dimensionId) => formatDimensionId({ dimensionId, - programStageId, programId, outputType: inputType, })