Small change to datasourceSrv, if datasource is not found, return default datasource

This commit is contained in:
Torkel Ödegaard 2014-09-11 14:07:27 +02:00
parent a65c61442e
commit 762dab618a
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ function (angular, _, config) {
if (!name) { return this.default; }
if (datasources[name]) { return datasources[name]; }
throw "Unable to find datasource: " + name;
return this.default;
};
this.getAnnotationSources = function() {

View File

@ -35,7 +35,7 @@
// Graphite Target Editor
@grafanaTargetBorder: @black;
@grafana-info-box grafanaTargetBackground: @grayDark;
@grafanaTargetBackground: @grayDark;
@grafanaTargetColor: #c8c8c8;
@grafanaTargetColorHide: darken(#c8c8c8, 25%);
@grafanaTargetSegmentBorder: #050505;