mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +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 setOverlayStateValue = useCallback(
|
||||
(value: S | undefined, replace: boolean = false) => {
|
||||
(value: S | undefined, replace?: boolean) => {
|
||||
setPersistedValue(value);
|
||||
const newLocationState = { ...currentLocationState };
|
||||
newLocationState[key] = value;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user