From 15457db160a2c072f695bfd85e2082e3d377f242 Mon Sep 17 00:00:00 2001 From: Salah-BOUYAHIA Date: Thu, 19 Dec 2024 15:20:26 +0100 Subject: [PATCH] fix: pyramidAge chart --- src/utils/graphUtils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/graphUtils.ts b/src/utils/graphUtils.ts index 0ee12fdb9..1325ef0e5 100644 --- a/src/utils/graphUtils.ts +++ b/src/utils/graphUtils.ts @@ -177,7 +177,9 @@ export const getAgeRepartitionMapAphp = (facet?: Extension[]): AgeRepartitionTyp const repartitionMap: AgeRepartitionMap[] = [] facet?.forEach((extension) => { - const ageObj = getExtension(extension, 'gender.display')?.url + const ageObj = extension.extension?.filter((object) => { + return object.url !== 'gender.display' + })?.[0].url const genderValuesObj = getExtension(extension, 'gender.display')