mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore/Actions: Stop loadExploreDatasourcesAndSetDatasource from running queries twice (#27577)
This commit is contained in:
parent
8a9ae60a8d
commit
ca7263d898
@ -263,7 +263,6 @@ export function loadExploreDatasourcesAndSetDatasource(
|
|||||||
|
|
||||||
if (exploreDatasources.length >= 1) {
|
if (exploreDatasources.length >= 1) {
|
||||||
await dispatch(changeDatasource(exploreId, datasourceName, { importQueries: true }));
|
await dispatch(changeDatasource(exploreId, datasourceName, { importQueries: true }));
|
||||||
dispatch(runQueries(exploreId));
|
|
||||||
} else {
|
} else {
|
||||||
dispatch(loadDatasourceMissingAction({ exploreId }));
|
dispatch(loadDatasourceMissingAction({ exploreId }));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user