forked from Github/frigate
Maintain existing overlay state when setting hash (#10495)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user