Browse Source

Merge pull request #14123 from grafana/switch-back-from-mixed

fixed issue switching back from mixed data source
Torkel Ödegaard 7 years ago
parent
commit
c67b55776c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/features/panel/metrics_tab.ts

+ 1 - 1
public/app/features/panel/metrics_tab.ts

@@ -76,7 +76,6 @@ export class MetricsTabCtrl {
       return;
     }
 
-    this.datasourceInstance = option.datasource;
     this.setDatasource(option.datasource);
     this.updateDatasourceOptions();
   }
@@ -96,6 +95,7 @@ export class MetricsTabCtrl {
       });
     }
 
+    this.datasourceInstance = datasource;
     this.panel.datasource = datasource.value;
     this.panel.refresh();
   }