From 9361c51af099a5bf22cca824ae0b07df712ad14a Mon Sep 17 00:00:00 2001 From: Nicolas Peltier Date: Wed, 3 Apr 2024 15:03:33 +0200 Subject: [PATCH] other fixes not brought in --- creativecloud/blocks/sidenav/sidenav.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/creativecloud/blocks/sidenav/sidenav.js b/creativecloud/blocks/sidenav/sidenav.js index 943a21708..5cb30c375 100644 --- a/creativecloud/blocks/sidenav/sidenav.js +++ b/creativecloud/blocks/sidenav/sidenav.js @@ -91,7 +91,7 @@ const appendFilters = async (root, link, explicitCategoriesElt, typeText) => { let shallowCategories = true; if (categoryValues.length > 0) { const items = categoryValues.map(({ value, icon }) => ({ ...mapCategories[value], icon })); - const parentValues = new Set(items.map(({ value }) => value?.id.split('/')[1])); + const parentValues = new Set(items.map(({ id }) => id?.split('/')[1])); // all parent will always be here without children, // so shallow is considered below 2 parents shallowCategories = parentValues.size <= 2;