Skip to content

Commit

Permalink
fix: fix crashing job view if roofline metrics missing
Browse files Browse the repository at this point in the history
  • Loading branch information
spacehamster87 committed Sep 24, 2024
1 parent d61c423 commit e527531
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/frontend/src/Job.root.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e527531

Please sign in to comment.