From f1ad0ffe06d7dfd867c10d2f57f5e21263d577b2 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Thu, 5 Feb 2026 12:22:01 +0000 Subject: [PATCH] fix: correct node type check in empty state conditions The dashboard and storage pages incorrectly filtered nodes by type === 'pve', but the backend provides nodes with type === 'node'. This caused the 'No Proxmox VE nodes configured' message to appear even when nodes were present. - Dashboard.tsx: Simplified check to props.nodes.length === 0 - Storage.tsx: Changed filter to type === 'node' Fixes #1192 --- frontend-modern/src/components/Dashboard/Dashboard.tsx | 2 +- frontend-modern/src/components/Storage/Storage.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend-modern/src/components/Dashboard/Dashboard.tsx b/frontend-modern/src/components/Dashboard/Dashboard.tsx index 2d39cd69b..3cb66ca7b 100644 --- a/frontend-modern/src/components/Dashboard/Dashboard.tsx +++ b/frontend-modern/src/components/Dashboard/Dashboard.tsx @@ -939,7 +939,7 @@ export function Dashboard(props: DashboardProps) { when={ connected() && initialDataReceived() && - props.nodes.filter((n) => n.type === 'pve').length === 0 && + props.nodes.length === 0 && props.vms.length === 0 && props.containers.length === 0 } diff --git a/frontend-modern/src/components/Storage/Storage.tsx b/frontend-modern/src/components/Storage/Storage.tsx index 20d85d62a..2bacdcfb0 100644 --- a/frontend-modern/src/components/Storage/Storage.tsx +++ b/frontend-modern/src/components/Storage/Storage.tsx @@ -733,7 +733,7 @@ const Storage: Component = () => { when={ connected() && initialDataReceived() && - (state.nodes || []).filter((n) => n.type === 'pve').length === 0 && + (state.nodes || []).filter((n) => n.type === 'node').length === 0 && sortedStorage().length === 0 && searchTerm().trim() === '' }