Explore: Run queries when queries imported (#26704)

This commit is contained in:
Ivana Huckova 2020-08-05 10:22:36 +02:00 committed by GitHub
parent ec783fbff4
commit 744e108b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,11 @@ export function changeDatasource(
} }
await dispatch(loadDatasource(exploreId, newDataSourceInstance, orgId)); 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));
}
}; };
} }