editor: edge case in shared property check
This commit is contained in:
parent
f68a82a80a
commit
0dcab0c634
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue