Commit 3162dda0 by Erik Sundell

remove explore check - make it possible to load all datasources

parent 58931c13
...@@ -159,10 +159,6 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> { ...@@ -159,10 +159,6 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
} else { } else {
datasource = await datasourceSrv.get(); datasource = await datasourceSrv.get();
} }
// temporarily remove this
// if (!datasource.meta.explore) {
// datasource = await datasourceSrv.get(datasources[0].name);
// }
await this.setDatasource(datasource); await this.setDatasource(datasource);
} else { } else {
this.setState({ datasourceMissing: true }); this.setState({ datasourceMissing: true });
......
...@@ -94,7 +94,6 @@ export class DatasourceSrv { ...@@ -94,7 +94,6 @@ export class DatasourceSrv {
getExploreSources() { getExploreSources() {
const { datasources } = config; const { datasources } = config;
const es = Object.keys(datasources).map(name => datasources[name]); const es = Object.keys(datasources).map(name => datasources[name]);
// .filter(ds => ds.meta && ds.meta.explore);
return _.sortBy(es, ['name']); return _.sortBy(es, ['name']);
} }
......
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