fix: time interval not getting updated in case of edit dashboard (#4940)

This commit is contained in:
Vikrant Gupta 2024-05-01 13:00:18 +05:30 committed by GitHub
parent 5c1c09c790
commit b85b9f42ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,12 +67,13 @@ function LeftContainer({
setRequestData((prev) => ({
...prev,
selectedTime: selectedTime.enum || prev.selectedTime,
globalSelectedInterval,
graphType: getGraphType(selectedGraph || selectedWidget.panelTypes),
query: stagedQuery,
}));
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [stagedQuery, selectedTime]);
}, [stagedQuery, selectedTime, globalSelectedInterval]);
const queryResponse = useGetQueryRange(
requestData,