mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Maintain existing overlay state when setting hash (#10495)
This commit is contained in:
parent
cf6ef84271
commit
4e8600a0ef
@ -76,7 +76,7 @@ export function useHashState<S extends string>(): [
|
|||||||
if (!value) {
|
if (!value) {
|
||||||
navigate(location.pathname);
|
navigate(location.pathname);
|
||||||
} else {
|
} else {
|
||||||
navigate(`${location.pathname}#${value}`);
|
navigate(`${location.pathname}#${value}`, { state: location.state });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// we know that these deps are correct
|
// we know that these deps are correct
|
||||||
|
Loading…
Reference in New Issue
Block a user