mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-31 16:32:00 +08:00
fix: time interval not getting updated in case of edit dashboard (#4940)
This commit is contained in:
parent
5c1c09c790
commit
b85b9f42ed
@ -67,12 +67,13 @@ function LeftContainer({
|
|||||||
setRequestData((prev) => ({
|
setRequestData((prev) => ({
|
||||||
...prev,
|
...prev,
|
||||||
selectedTime: selectedTime.enum || prev.selectedTime,
|
selectedTime: selectedTime.enum || prev.selectedTime,
|
||||||
|
globalSelectedInterval,
|
||||||
graphType: getGraphType(selectedGraph || selectedWidget.panelTypes),
|
graphType: getGraphType(selectedGraph || selectedWidget.panelTypes),
|
||||||
query: stagedQuery,
|
query: stagedQuery,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [stagedQuery, selectedTime]);
|
}, [stagedQuery, selectedTime, globalSelectedInterval]);
|
||||||
|
|
||||||
const queryResponse = useGetQueryRange(
|
const queryResponse = useGetQueryRange(
|
||||||
requestData,
|
requestData,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user