Bläddra i källkod

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

Explore: Stop scanning when clear all button is clicked
David 7 år sedan
förälder
incheckning
a69ab2fb3a
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      public/app/features/explore/Explore.tsx

+ 1 - 0
public/app/features/explore/Explore.tsx

@@ -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 => ({