mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
vmui: fix query params saving in URL (#3104)
This commit is contained in:
parent
961e986ca9
commit
46e8bd34f7
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export const StateProvider: FC = ({children}) => {
|
|||
const [state, dispatch] = useReducer(reducer, initialPrepopulatedState);
|
||||
|
||||
useEffect(() => {
|
||||
if (pathname !== router.dashboards || pathname !== router.home) return;
|
||||
if (pathname !== router.dashboards && pathname !== router.home) return;
|
||||
setQueryStringValue(state as unknown as Record<string, unknown>);
|
||||
}, [state, pathname]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue