Fix crash when dragging from client preview into component tree
This commit is contained in:
parent
d02fb96e6e
commit
121eddaa5a
|
@ -76,6 +76,9 @@
|
||||||
const compDef = store.actions.components.getDefinition(
|
const compDef = store.actions.components.getDefinition(
|
||||||
$dndStore.source?._component
|
$dndStore.source?._component
|
||||||
)
|
)
|
||||||
|
if (!compDef) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const compTypeName = compDef.name.toLowerCase()
|
const compTypeName = compDef.name.toLowerCase()
|
||||||
const path = findComponentPath(currentScreen.props, component._id)
|
const path = findComponentPath(currentScreen.props, component._id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue