fix: prevent VM/container counts from zeroing when node is selected

- NodeSummaryTable now always uses unfiltered state data for counts
- This ensures all nodes show correct counts even when one is selected
- The parent component handles filtering for the main display separately
This commit is contained in:
Pulse Monitor
2025-08-29 14:05:50 +00:00
parent 08b893f719
commit e9329ce3ac
@@ -81,9 +81,9 @@ export const UnifiedNodeSelector: Component<UnifiedNodeSelectorProps> = (props)
<NodeSummaryTable
nodes={nodes()}
pbsInstances={props.currentTab === 'backups' ? state.pbs : undefined}
vms={props.filteredVms !== undefined ? props.filteredVms : state.vms}
containers={props.filteredContainers !== undefined ? props.filteredContainers : state.containers}
storage={props.filteredStorage !== undefined ? props.filteredStorage : state.storage}
vms={state.vms} // Always use unfiltered data for counts
containers={state.containers} // Always use unfiltered data for counts
storage={state.storage} // Always use unfiltered data for counts
backupCounts={backupCounts()}
currentTab={props.currentTab}
selectedNode={selectedNode()}