Skip to content

Commit

Permalink
[ALS-7521] Make facet hiding work for categories with no hidden facets
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Oct 8, 2024
1 parent 692053e commit 2202912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/explorer/FacetCategory.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
};
function getFacetsToDisplay() {
const hiddenFacetsForCategory = $hiddenFacets[facetCategory.name];
const hiddenFacetsForCategory = $hiddenFacets[facetCategory.name] || [];
let facetsToDisplay = facets.filter((f) => !hiddenFacetsForCategory.includes(f.name));
//Put selected facets at the top
Expand Down

0 comments on commit 2202912

Please sign in to comment.