mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 05:05:26 +03:00
optional param
This commit is contained in:
parent
a4eb01a0ae
commit
35499c3e3a
@ -42,7 +42,7 @@ export function usePersistedOverlayState<S extends string>(
|
|||||||
const currentLocationState = location.state;
|
const currentLocationState = location.state;
|
||||||
|
|
||||||
const setOverlayStateValue = useCallback(
|
const setOverlayStateValue = useCallback(
|
||||||
(value: S | undefined, replace: boolean = false) => {
|
(value: S | undefined, replace?: boolean) => {
|
||||||
setPersistedValue(value);
|
setPersistedValue(value);
|
||||||
const newLocationState = { ...currentLocationState };
|
const newLocationState = { ...currentLocationState };
|
||||||
newLocationState[key] = value;
|
newLocationState[key] = value;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user