diff --git a/ui/builder/component-builder.ts b/ui/builder/component-builder.ts index 081c9ab9c..7ed8c9ccf 100644 --- a/ui/builder/component-builder.ts +++ b/ui/builder/component-builder.ts @@ -86,7 +86,9 @@ export function getComponentModule(elementName: string, namespace: string, attri subObj = subObj[properties[i]]; } - setPropertyValue(subObj, instanceModule, exports, subPropName, attrValue); + if (types.isDefined(subObj)) { + setPropertyValue(subObj, instanceModule, exports, subPropName, attrValue); + } } else { setPropertyValue(instance, instanceModule, exports, attr, attrValue); }