Skip to content

Commit

Permalink
fix: Updates of categories interactive filters
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Aug 8, 2023
1 parent f16a97b commit fa2c9c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/stores/interactive-filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ export const useInteractiveFiltersStore = create<
},
removeCategory: (category: string) => {
return set((state) => {
const { categories } = state;
delete categories[category];
return { ...state, categories };
delete state.categories[category];
return { ...state, categories: { ...state.categories } };
});
},
resetCategories: () => {
Expand Down

0 comments on commit fa2c9c7

Please sign in to comment.