Skip to content

Commit

Permalink
fix: empty public settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 2, 2022
1 parent 8125fee commit fb23758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/settingitem.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var settingsMap map[string]string
var publicSettingsMap map[string]string

func GetPublicSettingsMap() map[string]string {
if settingsMap == nil {
if settingsMap == nil || publicSettingsMap == nil {
publicSettingsMap = make(map[string]string)
settingItems, err := GetPublicSettingItems()
if err != nil {
Expand Down

0 comments on commit fb23758

Please sign in to comment.