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 f147422e74
commit bd52745a90
1 changed files with 1 additions and 1 deletions

View File

@ -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)