improve configuration defaults handling

This commit is contained in:
Christoph Haas
2025-08-10 14:12:24 +02:00
parent 0037938f9e
commit 593bb983fb
3 changed files with 29 additions and 12 deletions

View File

@@ -107,7 +107,7 @@ func (e ConfigEndpoint) handleSettingsGet() http.HandlerFunc {
names := make([]model.SettingsBackendNames, 0, len(controllers))
for _, controller := range controllers {
displayName := controller.DisplayName
displayName := controller.GetDisplayName()
if displayName == "" {
displayName = controller.Id // fallback to ID if no display name is set
}