Merge pull request #288 from ClusterCockpit/hotfix

fix: fix crashing job view if roofline metrics missing
This commit is contained in:
Christoph Kluge 2024-09-24 14:47:51 +02:00 committed by GitHub
commit 9cf5478519
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -280,12 +280,12 @@
.find((c) => c.name == $initq.data.job.cluster)
.subClusters.find((sc) => sc.name == $initq.data.job.subCluster)}
data={transformDataForRoofline(
$jobMetrics.data.jobMetrics.find(
$jobMetrics.data?.jobMetrics?.find(
(m) => m.name == "flops_any" && m.scope == "node",
).metric,
$jobMetrics.data.jobMetrics.find(
)?.metric,
$jobMetrics.data?.jobMetrics?.find(
(m) => m.name == "mem_bw" && m.scope == "node",
).metric,
)?.metric,
)}
/>
</Col>