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)); + } }; }