mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
make getAll return array instead of object
This commit is contained in:
@@ -74,7 +74,8 @@ export class DatasourceSrv {
|
||||
}
|
||||
|
||||
getAll() {
|
||||
return config.datasources;
|
||||
const { datasources } = config;
|
||||
return Object.keys(datasources).map(name => datasources[name]);
|
||||
}
|
||||
|
||||
getAnnotationSources() {
|
||||
|
||||
Reference in New Issue
Block a user