Skip to content

Commit

Permalink
Merge pull request #362 from hargata/Hargata/persist.columns
Browse files Browse the repository at this point in the history
null check for column preferences
  • Loading branch information
hargata authored Mar 3, 2024
2 parents 0870387 + 2c45521 commit a87b599
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Helper/ConfigHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ public UserConfig GetUserConfig(ClaimsPrincipal user)
UserLanguage = _config[nameof(UserConfig.UserLanguage)],
EnableShopSupplies = bool.Parse(_config[nameof(UserConfig.EnableShopSupplies)]),
EnableExtraFieldColumns = bool.Parse(_config[nameof(UserConfig.EnableExtraFieldColumns)]),
VisibleTabs = _config.GetSection("VisibleTabs").Get<List<ImportMode>>(),
VisibleTabs = _config.GetSection(nameof(UserConfig.VisibleTabs)).Get<List<ImportMode>>(),
UserColumnPreferences = _config.GetSection(nameof(UserConfig.UserColumnPreferences)).Get<List<UserColumnPreference>>() ?? new List<UserColumnPreference>(),
DefaultTab = (ImportMode)int.Parse(_config[nameof(UserConfig.DefaultTab)])
};
int userId = 0;
Expand Down

0 comments on commit a87b599

Please sign in to comment.