add fallback case to extendedLegend render

This commit is contained in:
Christoph Kluge
2026-01-26 18:09:54 +01:00
parent 4aa337ccc8
commit 934bc13c2c

View File

@@ -116,7 +116,7 @@
pendingExtendedLegendData = {}; pendingExtendedLegendData = {};
for (const accId of accSet) { for (const accId of accSet) {
const matchJob = $nodeJobsData.data.jobs.items.find((i) => i.resources.find((r) => r.accelerators.includes(accId))) const matchJob = $nodeJobsData?.data?.jobs?.items?.find((i) => i?.resources?.find((r) => r?.accelerators?.includes(accId))) || null
const matchUser = matchJob?.user ? matchJob.user : null const matchUser = matchJob?.user ? matchJob.user : null
pendingExtendedLegendData[accId] = { pendingExtendedLegendData[accId] = {
user: (scrambleNames && matchUser) user: (scrambleNames && matchUser)