From 744e108b0481b51b0e5f95a1a14a78b2d46ae481 Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Wed, 5 Aug 2020 10:22:36 +0200 Subject: [PATCH] Explore: Run queries when queries imported (#26704) --- public/app/features/explore/state/actions.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/app/features/explore/state/actions.ts b/public/app/features/explore/state/actions.ts index 7922f83bc04..e451a839ffc 100644 --- a/public/app/features/explore/state/actions.ts +++ b/public/app/features/explore/state/actions.ts @@ -156,6 +156,11 @@ export function changeDatasource( } await dispatch(loadDatasource(exploreId, newDataSourceInstance, orgId)); + + // Exception - we only want to run queries on data source change, if the queries were imported + if (options?.importQueries) { + dispatch(runQueries(exploreId)); + } }; }