1
0
Fork 0
mirror of synced 2024-07-27 17:16:23 +12: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 2ffb29dddf
commit bebe2f62c3

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)