Skip to content

Commit 9c5940b

Browse files
Robot page exception (#2148)
1 parent af9b099 commit 9c5940b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/core-ui/src/lib/util/DatasetUtils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function pushRowData(
180180
jointDataset: JointDataset,
181181
row: { [key: string]: number }
182182
): void {
183-
const categories = jointDataset.metaDict[property].sortedCategoricalValues;
183+
const categories = jointDataset.metaDict[property]?.sortedCategoricalValues;
184184
if (jointDataset.metaDict[property].isCategorical && categories) {
185185
tableRow.push(categories[row[property]]);
186186
} else {
@@ -197,7 +197,8 @@ function pushMultilabelRowData(
197197
const values = [];
198198
for (let i = 0; i < jointDataset.numLabels; i++) {
199199
const labelProp = property + i.toString();
200-
const categories = jointDataset.metaDict[labelProp].sortedCategoricalValues;
200+
const categories =
201+
jointDataset.metaDict[labelProp]?.sortedCategoricalValues;
201202
if (jointDataset.metaDict[labelProp].isCategorical && categories) {
202203
const value = categories[row[labelProp]];
203204
if (value) {

0 commit comments

Comments
 (0)