Skip to content

Commit 927fcff

Browse files
committed
Handle missing descriptions in frontend
1 parent 3b9c147 commit 927fcff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/views/surface/surfacePane/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -493,13 +493,13 @@ const SurfacePane = ({
493493
`(${entry.conditions[condition] >= 0 ? "+" : ""}${
494494
entry.conditions[condition]
495495
}) ${condition}`,
496-
datasetDescriptions[task].maps[condition].description,
496+
datasetDescriptions[task]?.maps[condition]?.description,
497497
]);
498498
}
499499
} else {
500500
newDescriptions.push([
501501
contrast,
502-
datasetDescriptions[task]?.maps[contrast].description,
502+
datasetDescriptions[task]?.maps[contrast]?.description,
503503
]);
504504
}
505505
}

0 commit comments

Comments
 (0)