Skip to content

Commit 7b302a4

Browse files
authored
fix(dashboards-eap): Call onDataFetched for widgetviewer (#88736)
This needs to get called so we can cache the right data for the widget viewer. Without it, the extrapolation message also doesn't seem to show.
1 parent ebfde33 commit 7b302a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

static/app/views/dashboards/widgetCard/spansWidgetQueries.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,11 @@ function SpansWidgetQueriesProgressiveLoadingImpl({
187187
dashboardFilters={dashboardFilters}
188188
afterFetchSeriesData={afterFetchSeriesData}
189189
samplingMode={SAMPLING_MODE.BEST_EFFORT}
190-
onDataFetched={() => {
190+
onDataFetched={results => {
191191
// Reset the query phase to preflight so that the next time this component
192192
// renders, it will start with only the preflight query
193193
setQueryPhase(SAMPLING_MODE.PREFLIGHT);
194+
onDataFetched?.(results);
194195
}}
195196
>
196197
{bestEffortProps => {

0 commit comments

Comments
 (0)