Commit 1157a623 by Torkel Ödegaard

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

parent 8130067f
...@@ -76,7 +76,6 @@ export class MetricsTabCtrl { ...@@ -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 { ...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment