{#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.scope == 'node'))
.map(h => ({
host: h.host,
subCluster: h.subCluster,
data: h.metrics.find(m => m.name == selectedMetric && m.scope == 'node'),
disabled: checkMetricDisabled(selectedMetric, cluster, h.subCluster)
}))
.sort((a, b) => a.host.localeCompare(b.host))
}>
{#if item.disabled === false && item.data}
c.name == cluster)}
subCluster={item.subCluster} />
{:else if item.disabled === true && item.data}
Metric disabled for subcluster {selectedMetric}:{item.subCluster}
{:else}
No dataset returned for {selectedMetric}
{/if}
{/if}