Skip to content

Commit

Permalink
fix for dep facet
Browse files Browse the repository at this point in the history
  • Loading branch information
fpbrault committed Aug 29, 2024
1 parent 5a3b236 commit cb2b8f9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ export const facetOptionsReducer = createReducer(
.addCase(restoreSearchParameters, (state, action) => {
for (const facetId in state.facets) {
const facet = state.facets[facetId];
facet.enabled = isFacetIncludedOnTab(facet.tabs, action.payload.tab);
if (Object.keys({...facet.tabs}).length > 0) {
facet.enabled = isFacetIncludedOnTab(
facet.tabs,
action.payload.tab
);
}
}
[
...Object.keys(action.payload.f ?? {}),
Expand Down

0 comments on commit cb2b8f9

Please sign in to comment.