forked from Github/frigate
Fix linter and fix lint issues (#10141)
This commit is contained in:
@@ -12,7 +12,9 @@ export default function useOverlayState(key: string) {
|
||||
newLocationState[key] = value;
|
||||
navigate(location.pathname, { state: newLocationState });
|
||||
},
|
||||
[navigate]
|
||||
// we know that these deps are correct
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
[key, navigate],
|
||||
);
|
||||
|
||||
const overlayStateValue = location.state && location.state[key];
|
||||
|
||||
Reference in New Issue
Block a user