diff --git a/frontend-modern/src/components/Docker/DockerHosts.tsx b/frontend-modern/src/components/Docker/DockerHosts.tsx index 822b10cbd..287b9fc76 100644 --- a/frontend-modern/src/components/Docker/DockerHosts.tsx +++ b/frontend-modern/src/components/Docker/DockerHosts.tsx @@ -507,7 +507,10 @@ export const DockerHosts: Component = (props) => { .filter((group) => group.containers.length > 0); }); - const hasContainers = createMemo(() => groupedContainers().some(g => g.containers.length > 0)); + const hasContainers = createMemo(() => { + const groups = groupedContainers(); + return groups && groups.length > 0 && groups.some(g => g.containers.length > 0); + }); const toggleHostSelection = (hostId: string) => { setSelectedHostId((current) => (current === hostId ? null : hostId));