1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

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

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)