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> {
} else {
datasource = await datasourceSrv.get();
}
// temporarily remove this
// if (!datasource.meta.explore) {
// datasource = await datasourceSrv.get(datasources[0].name);
// }
await this.setDatasource(datasource);
} else {
this.setState({ datasourceMissing: true });
......
......@@ -94,7 +94,6 @@ export class DatasourceSrv {
getExploreSources() {
const { datasources } = config;
const es = Object.keys(datasources).map(name => datasources[name]);
// .filter(ds => ds.meta && ds.meta.explore);
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