Merge pull request #14299 from grafana/14273-clear-scanning

Explore: Stop scanning when clear all button is clicked
This commit is contained in:
David 2018-12-04 12:37:04 +01:00 committed by GitHub
commit a69ab2fb3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,6 +351,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
}; };
onClickClear = () => { onClickClear = () => {
this.onStopScanning();
this.modifiedQueries = ensureQueries(); this.modifiedQueries = ensureQueries();
this.setState( this.setState(
prevState => ({ prevState => ({