Fix crash when dragging from client preview into component tree

This commit is contained in:
Andrew Kingston 2022-10-14 18:17:02 +01:00
parent d02fb96e6e
commit 121eddaa5a
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@
const compDef = store.actions.components.getDefinition(
$dndStore.source?._component
)
if (!compDef) {
return
}
const compTypeName = compDef.name.toLowerCase()
const path = findComponentPath(currentScreen.props, component._id)