Skip to content

Commit

Permalink
fix: step interval not getting updated on time range change
Browse files Browse the repository at this point in the history
  • Loading branch information
vikrantgupta25 committed Apr 30, 2024
1 parent 33960b0 commit 06fca31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/container/GridCardLayout/GridCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ function GridCardGraph({
};
});

useEffect(() => {
setRequestData((prev) => ({
...prev,
query: updatedQuery,
}));
}, [updatedQuery]);

const queryResponse = useGetQueryRange(
{
...requestData,
Expand Down

0 comments on commit 06fca31

Please sign in to comment.