Bläddra i källkod

fix(): minor query editor fix

Torkel Ödegaard 9 år sedan
förälder
incheckning
5a241a8290
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      public/app/features/panel/query_editor_row.ts

+ 1 - 0
public/app/features/panel/query_editor_row.ts

@@ -79,6 +79,7 @@ export class QueryRowCtrl {
   }
   }
 
 
   removeQuery() {
   removeQuery() {
+    delete this.panelCtrl.__collapsedQueryCache[this.target.refId];
     this.panel.targets = _.without(this.panel.targets, this.target);
     this.panel.targets = _.without(this.panel.targets, this.target);
     this.panelCtrl.refresh();
     this.panelCtrl.refresh();
   }
   }