mirror of
https://github.com/grafana/grafana.git
synced 2025-01-18 20:43:26 -06:00
Small change to datasourceSrv, if datasource is not found, return default datasource
This commit is contained in:
parent
a65c61442e
commit
762dab618a
@ -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() {
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
// Graphite Target Editor
|
||||
@grafanaTargetBorder: @black;
|
||||
@grafana-info-box grafanaTargetBackground: @grayDark;
|
||||
@grafanaTargetBackground: @grayDark;
|
||||
@grafanaTargetColor: #c8c8c8;
|
||||
@grafanaTargetColorHide: darken(#c8c8c8, 25%);
|
||||
@grafanaTargetSegmentBorder: #050505;
|
||||
|
Loading…
Reference in New Issue
Block a user