mirror of
https://github.com/grafana/grafana.git
synced 2025-01-17 12:03:26 -06:00
Explore: Don't change query status to Done if there was Error (#43850)
This commit is contained in:
parent
1141df7b9b
commit
dcd4e74c54
@ -471,7 +471,12 @@ export const runQueries = (
|
|||||||
console.error(error);
|
console.error(error);
|
||||||
},
|
},
|
||||||
complete() {
|
complete() {
|
||||||
dispatch(changeLoadingStateAction({ exploreId, loadingState: LoadingState.Done }));
|
// In case we don't get any response at all but the observable completed, make sure we stop loading state.
|
||||||
|
// This is for cases when some queries are noop like running first query after load but we don't have any
|
||||||
|
// actual query input.
|
||||||
|
if (getState().explore[exploreId]!.queryResponse.state === LoadingState.Loading) {
|
||||||
|
dispatch(changeLoadingStateAction({ exploreId, loadingState: LoadingState.Done }));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user