Explore: Run queries when queries imported (#26704)

pull/26797/head
Ivana Huckova 5 years ago committed by GitHub
parent ec783fbff4
commit 744e108b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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));
}
};
}

Loading…
Cancel
Save