mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(default datasource): minor fix for handling of default datasource
This commit is contained in:
parent
4f8cea6e2d
commit
50281f12b9
@ -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: [{}],
|
||||
|
Loading…
Reference in New Issue
Block a user