From b85b9f42ed7d18b56fa3ef2e873c7f57559e540c Mon Sep 17 00:00:00 2001 From: Vikrant Gupta Date: Wed, 1 May 2024 13:00:18 +0530 Subject: [PATCH] fix: time interval not getting updated in case of edit dashboard (#4940) --- frontend/src/container/NewWidget/LeftContainer/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/container/NewWidget/LeftContainer/index.tsx b/frontend/src/container/NewWidget/LeftContainer/index.tsx index 6bc429c1c7..66d91b7544 100644 --- a/frontend/src/container/NewWidget/LeftContainer/index.tsx +++ b/frontend/src/container/NewWidget/LeftContainer/index.tsx @@ -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,