1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

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

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)