mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 02:33:32 +00:00
fix: correct node filtering logic to properly detect when filtered guests are provided
This commit is contained in:
@@ -15,11 +15,10 @@ interface PVENodeTableProps {
|
||||
}
|
||||
|
||||
export const PVENodeTable: Component<PVENodeTableProps> = (props) => {
|
||||
// Check if we have active filtering (fewer guests than total)
|
||||
// Check if we have active filtering (receiving filtered guests)
|
||||
const hasActiveFilter = createMemo(() => {
|
||||
const vmsCount = props.vms?.length || 0;
|
||||
const containersCount = props.containers?.length || 0;
|
||||
return vmsCount > 0 || containersCount > 0;
|
||||
// If vms or containers props are explicitly passed, we're filtering
|
||||
return props.vms !== undefined || props.containers !== undefined;
|
||||
});
|
||||
|
||||
// Filter and sort nodes - only show nodes with matching guests when filtering
|
||||
|
||||
Reference in New Issue
Block a user