Skip to content

Commit

Permalink
Fix issue of no valueObject property present. (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
buddhawang committed May 11, 2021
1 parent 529b920 commit ed96329
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ export class PrebuiltPredictPage extends React.Component<IPrebuiltPredictPagePro
if (isRootItemObject(restProps)) {
flatFieldProps(displayName, restProps);
}
for (const [fieldName, objFieldProps] of Object.entries(fieldProps.valueObject)) {
for (const [fieldName, objFieldProps] of Object.entries(valueObject || {})) {
flatFieldProps(`${displayName}: ${fieldName}`, objFieldProps);
}
break;
Expand Down

0 comments on commit ed96329

Please sign in to comment.