{#if $nodesQuery.error}
{$nodesQuery.error.message}
{:else if $nodesQuery.fetching || $initq.fetching}
{:else}
h.host.includes(hostnameFilter) && h.metrics.some(m => m.name == selectedMetric && m.metric.scope == 'node'))
.map(h => ({ host: h.host, subCluster: h.subCluster, data: h.metrics.find(m => m.name == selectedMetric && m.metric.scope == 'node') }))
.sort((a, b) => a.host.localeCompare(b.host))}>
c.name == cluster)}
subCluster={item.subCluster} />
{/if}