Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 40fb537

Browse files
authored
Merge pull request #170 from jaehnri/master
Add omitempty to Preferences theme
2 parents 3007752 + 9ab2e6a commit 40fb537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: preferences.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type QueryHistoryPreference struct {
2020

2121
// Preferences represents Grafana preferences.
2222
type Preferences struct {
23-
Theme string `json:"theme"`
23+
Theme string `json:"theme,omitempty"`
2424
HomeDashboardID int64 `json:"homeDashboardId,omitempty"`
2525
HomeDashboardUID string `json:"homeDashboardUID,omitempty"`
2626
Timezone string `json:"timezone,omitempty"`

0 commit comments

Comments
 (0)