Skip to content

Commit

Permalink
fix(): A Datasource with null jsonData would make Grafana fail to loa…
Browse files Browse the repository at this point in the history
…d page, fixes grafana#4536
  • Loading branch information
torkelo committed Apr 3, 2016
1 parent bcc875a commit a2c6469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Bug fixes
* **Dashboard**: Fixed dashboard panel layout for mobile devices, fixes [#4529](https://github.com/grafana/grafana/issues/4529)
* **Page Load Crash**: A Datasource with null jsonData would make Grafana fail to load page, fixes [#4536](https://github.com/grafana/grafana/issues/4536)

# 3.0.0-beta1 (2016-03-31)

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/frontendsettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func getFrontendSettingsMap(c *middleware.Context) (map[string]interface{}, erro
defaultDatasource = ds.Name
}

if len(ds.JsonData.MustMap()) > 0 {
if ds.JsonData != nil {
dsMap["jsonData"] = ds.JsonData
}

Expand Down

0 comments on commit a2c6469

Please sign in to comment.