Fix crash determining illegal children when selectedComponent is null

This commit is contained in:
Andrew Kingston 2021-06-16 09:37:23 +01:00
parent d5e40fc090
commit 88b9527f8a
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
const isChildAllowed = ({ name }, selectedComponent) => {
const currentComponent = store.actions.components.getDefinition(
selectedComponent._component
selectedComponent?._component
)
return currentComponent?.illegalChildren?.includes(name)