Fix crash determining illegal children when selectedComponent is null
This commit is contained in:
parent
f147422e74
commit
bd52745a90
|
@ -7,7 +7,7 @@
|
|||
|
||||
const isChildAllowed = ({ name }, selectedComponent) => {
|
||||
const currentComponent = store.actions.components.getDefinition(
|
||||
selectedComponent._component
|
||||
selectedComponent?._component
|
||||
)
|
||||
|
||||
return currentComponent?.illegalChildren?.includes(name)
|
||||
|
|
Loading…
Reference in New Issue