Skip to content
Snippets Groups Projects
Commit 6d941434 authored by Dima Rifai's avatar Dima Rifai
Browse files

Issue #487 - Set Range values from URL if any

parent 7f5042aa
No related branches found
No related tags found
1 merge request!590Issue #487 - Set Range values from URL if any
Pipeline #118019 canceled
...@@ -178,6 +178,14 @@ const useSearchRanges = ( ...@@ -178,6 +178,14 @@ const useSearchRanges = (
}; };
}; };
const { paramsState } = useURLParams(undefined);
// Set range values from url params
useEffect(() => {
if (paramsState) {
setRangesValues(paramsState);
}
}, [paramsState]);
return { return {
rangeSelectOptions, rangeSelectOptions,
timeSelectOptions, timeSelectOptions,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment