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