From b50ecdc42c5ac359485b74890dbe3003c9fc1588 Mon Sep 17 00:00:00 2001 From: braimbault Date: Thu, 5 Dec 2024 16:01:04 +0100 Subject: [PATCH] fix: getRelativePeriodsDetails --- src/components/PeriodDimension/utils/relativePeriods.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/PeriodDimension/utils/relativePeriods.js b/src/components/PeriodDimension/utils/relativePeriods.js index 4b23e9daa..37814bb37 100644 --- a/src/components/PeriodDimension/utils/relativePeriods.js +++ b/src/components/PeriodDimension/utils/relativePeriods.js @@ -299,6 +299,7 @@ export const getRelativePeriodsDetails = () => .map((option) => option.getPeriods().map((period) => ({ id: period.id, + name: period.name, offset: period.offset, duration: period.duration, type: option.id, @@ -306,7 +307,7 @@ export const getRelativePeriodsDetails = () => ) .flat() .reduce((acc, period) => { - acc[period.id] = period.name + acc[period.id] = period return acc }, {})