Skip to content

Commit

Permalink
Fix onRefresh for metrics explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
kpatticha committed Feb 18, 2025
1 parent 4dd16aa commit 294a3e5
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,16 @@ const MetricsExplorerContent = () => {
currentTimerange: timeRange,
};

if (!isLoading) {
onPageReady({
meta: {
rangeFrom: timeRange.from,
rangeTo: timeRange.to,
},
});
}
useEffect(() => {
if (!isLoading && data) {
onPageReady({
meta: {
rangeFrom: timeRange.from,
rangeTo: timeRange.to,
},
});
}
}, [isLoading, data]);

return (
<InfraPageTemplate
Expand Down

0 comments on commit 294a3e5

Please sign in to comment.