Commit 50281f12 by Torkel Ödegaard

fix(default datasource): minor fix for handling of default datasource

parent 4f8cea6e
......@@ -98,7 +98,7 @@ func getFrontendSettingsMap(c *middleware.Context) (map[string]interface{}, erro
}
if defaultDatasource == "" {
defaultDatasource = "grafana"
defaultDatasource = "-- Grafana --"
}
jsonObj := map[string]interface{}{
......
......@@ -37,6 +37,7 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
// Set and populate defaults
var _d = {
links: [],
datasource: null,
maxDataPoints: 100,
interval: null,
targets: [{}],
......
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