diff --git a/web/src/hooks/use-overlay-state.tsx b/web/src/hooks/use-overlay-state.tsx index 12f87be57..7ae5bdc18 100644 --- a/web/src/hooks/use-overlay-state.tsx +++ b/web/src/hooks/use-overlay-state.tsx @@ -42,7 +42,7 @@ export function usePersistedOverlayState( 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;