зеркало из https://github.com/mozilla/Spoke.git
Merge pull request #1179 from mozilla/check-modfified-export-undefined
Check if the modified component exist before accessing the prop
This commit is contained in:
Коммит
d193b7ce4c
|
@ -463,7 +463,10 @@ export default function EditorNodeMixin(Object3DClass) {
|
|||
}
|
||||
|
||||
optionalPropertyExportValue(componentName, propName) {
|
||||
return this.modifiedProperties[componentName][propName] ? this[propName] : undefined;
|
||||
if (this.modifiedProperties[componentName]) {
|
||||
return this.modifiedProperties[componentName][propName] ? this[propName] : undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
set modifiedProperties(object) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче