refactor: category selection nav
This commit is contained in:
parent
b2f8a14acb
commit
a3d61830b2
1 changed files with 4 additions and 4 deletions
|
|
@ -69,12 +69,12 @@ function BrowserCategories() {
|
|||
? categories.filter(element => element !== category)
|
||||
: [...categories, category];
|
||||
navRef.current({
|
||||
search: {
|
||||
...search,
|
||||
search: prev => ({
|
||||
...prev,
|
||||
categories: newCategories,
|
||||
},
|
||||
}),
|
||||
});
|
||||
}, [search, categories]);
|
||||
}, [categories]);
|
||||
|
||||
return (
|
||||
<div className="top-0 h-fit min-w-50">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue