mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-09-24 06:53:13 +08:00
Merge branch 'pull-51' into main
This commit is contained in:
commit
75c5615d10
@ -41,12 +41,12 @@ const _DateTimeSelector = (props: DateTimeSelectorProps) => {
|
|||||||
const [refreshButtonClick, setRefreshButtoClick] = useState(0);
|
const [refreshButtonClick, setRefreshButtoClick] = useState(0);
|
||||||
const [form_dtselector] = Form.useForm();
|
const [form_dtselector] = Form.useForm();
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
const updateTimeOnQueryParamChange = () => {
|
const updateTimeOnQueryParamChange = () => {
|
||||||
const timeDurationInLocalStorage = localStorage.getItem(
|
const timeDurationInLocalStorage = localStorage.getItem(
|
||||||
LOCAL_STORAGE.METRICS_TIME_IN_DURATION,
|
LOCAL_STORAGE.METRICS_TIME_IN_DURATION,
|
||||||
);
|
);
|
||||||
|
const urlParams = new URLSearchParams(location.search);
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
|
||||||
const intervalInQueryParam = urlParams.get(METRICS_PAGE_QUERY_PARAM.interval);
|
const intervalInQueryParam = urlParams.get(METRICS_PAGE_QUERY_PARAM.interval);
|
||||||
const startTimeString = urlParams.get(METRICS_PAGE_QUERY_PARAM.startTime);
|
const startTimeString = urlParams.get(METRICS_PAGE_QUERY_PARAM.startTime);
|
||||||
const endTimeString = urlParams.get(METRICS_PAGE_QUERY_PARAM.endTime);
|
const endTimeString = urlParams.get(METRICS_PAGE_QUERY_PARAM.endTime);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user