mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 15:15:22 +03:00
Fix infinite loop
This commit is contained in:
parent
7c63cb5bca
commit
b2072c6c58
@ -125,7 +125,7 @@ export function useSearchEffect(
|
||||
const remove = callback(param[1]);
|
||||
|
||||
if (remove) {
|
||||
setSearchParams();
|
||||
setSearchParams(undefined, { replace: true });
|
||||
}
|
||||
}, [param, callback, setSearchParams]);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user