Browse Source

fixed issue switching back from mixed data source, introduced by react panels changes

Torkel Ödegaard 7 years ago
parent
commit
1157a62375
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;
       return;
     }
     }
 
 
-    this.datasourceInstance = option.datasource;
     this.setDatasource(option.datasource);
     this.setDatasource(option.datasource);
     this.updateDatasourceOptions();
     this.updateDatasourceOptions();
   }
   }
@@ -96,6 +95,7 @@ export class MetricsTabCtrl {
       });
       });
     }
     }
 
 
+    this.datasourceInstance = datasource;
     this.panel.datasource = datasource.value;
     this.panel.datasource = datasource.value;
     this.panel.refresh();
     this.panel.refresh();
   }
   }