🐛 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(() => {
|
useEffect(() => {
|
||||||
if (getFilterEdge.length === 0) {
|
if (getFilterEdge.length === 0 && search === "") {
|
||||||
setFilterData(data);
|
setFilterData(data);
|
||||||
setFilterEdge([]);
|
setFilterEdge([]);
|
||||||
setSearch("");
|
setSearch("");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue