make getAll return array instead of object

This commit is contained in:
Erik Sundell
2018-11-30 09:48:59 +01:00
parent df75fb0e6d
commit 3d45b5ba73
2 changed files with 3 additions and 2 deletions

View File

@@ -74,7 +74,8 @@ export class DatasourceSrv {
}
getAll() {
return config.datasources;
const { datasources } = config;
return Object.keys(datasources).map(name => datasources[name]);
}
getAnnotationSources() {