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 authored and Luke-Sikina committed Nov 6, 2024
1 parent 732a095 commit 3874eeb
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 3874eeb

Please sign in to comment.