Skip to content

Commit

Permalink
other fixes not brought in
Browse files Browse the repository at this point in the history
  • Loading branch information
npeltier committed Apr 3, 2024
1 parent a7d6fd2 commit 9361c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion creativecloud/blocks/sidenav/sidenav.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9361c51

Please sign in to comment.