mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-01-28 06:51:45 +01:00
add fallback case to extendedLegend render
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user