🐛 fix(extraSidebarComponent): update condition in useEffect to include search variable to properly reset filter data and edge when search is empty
This commit is contained in:
parent
08c83fa555
commit
e8524ea090
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ export default function ExtraSidebar(): JSX.Element {
|
|||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (getFilterEdge.length === 0) {
|
||||
if (getFilterEdge.length === 0 && search === "") {
|
||||
setFilterData(data);
|
||||
setFilterEdge([]);
|
||||
setSearch("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue