From e4ea62b3af673e4db686fc8684d81194eb48ed20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Jamr=C3=B3z?= Date: Wed, 13 Sep 2023 11:47:39 +0200 Subject: [PATCH] Explore: Fix tracking when log results are shown (#74798) Fix tracking logs results displayed --- public/app/features/explore/state/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/explore/state/query.ts b/public/app/features/explore/state/query.ts index bb789d82639..cb47fc5c9b8 100644 --- a/public/app/features/explore/state/query.ts +++ b/public/app/features/explore/state/query.ts @@ -583,7 +583,7 @@ export const runQueries = createAsyncThunk( newQuerySubscription = newQuerySource.subscribe({ next(data) { - if (data.logsResult !== null) { + if (data.logsResult !== null && data.state === LoadingState.Done) { reportInteraction('grafana_explore_logs_result_displayed', { datasourceType: datasourceInstance.type, });