Skip to content

Commit

Permalink
fix: time interval not getting updated in case of edit dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
vikrantgupta25 committed Apr 30, 2024
1 parent 191d9b0 commit 255ac2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/container/NewWidget/LeftContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 255ac2a

Please sign in to comment.