Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
refactor: Remove unreachable dead code branches
rcourtmanfe77d4462097
diff --git a/internal/models/converters.go b/internal/models/converters.goindex dcea29d6ea..b8ac272674 100644--- a/internal/models/converters.go+++ b/internal/models/converters.go@@ -318,12 +318,9 @@ func (h Host) ToFrontend() HostFrontend {LastSeen: h.LastSeen.Unix() * 1000,}- if host.DisplayName == "" {- if h.DisplayName != "" {- host.DisplayName = h.DisplayName- } else if h.Hostname != "" {- host.DisplayName = h.Hostname- }+ // Fall back to Hostname if DisplayName is empty+ if host.DisplayName == "" && h.Hostname != "" {+ host.DisplayName = h.Hostname}if len(h.LoadAverage) > 0 {