editor: edge case in shared property check

This commit is contained in:
bordun 2020-10-04 19:26:28 +02:00
parent 62fa8f2223
commit d8d37fb312

View file

@ -133,7 +133,7 @@ class UiInspector extends UiWidget {
if (widgets.some((w)=>{
let shared = false
for (let c in defaults[widget.props.type]) {
if (defaults[w.props.type][c].hasOwnProperty(propName)) {
if (defaults[w.props.type][c] && defaults[w.props.type][c].hasOwnProperty(propName)) {
shared = true
break
}