From aabd75bdabc6550051016853b21b790ef66ced6e Mon Sep 17 00:00:00 2001 From: Louise Wang Date: Wed, 8 Dec 2021 15:34:09 +0100 Subject: [PATCH] fix: changes due to table refactor --- src/components/item/sharing/CategorySelection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/item/sharing/CategorySelection.js b/src/components/item/sharing/CategorySelection.js index 2d65adf7d..a7a23c427 100644 --- a/src/components/item/sharing/CategorySelection.js +++ b/src/components/item/sharing/CategorySelection.js @@ -63,7 +63,7 @@ function CategorySelection({ item, edit }) { // process data const categoriesMap = allCategories?.groupBy((entry) => entry.type); const ageList = categoriesMap - ?.get(categoryTypes?.filter((type) => type.name === 'age').get(0).id) + ?.get(categoryTypes?.filter((type) => type.name === 'level').get(0).id) ?.toArray(); const disciplineList = categoriesMap ?.get(categoryTypes?.filter((type) => type.name === 'discipline').get(0).id) @@ -127,7 +127,7 @@ function CategorySelection({ item, edit }) { {t('Category')} <> - {t('Age Range')} + {t('Level')}