diff --git a/packages/form-js-editor/src/features/dragging/Dragging.js b/packages/form-js-editor/src/features/dragging/Dragging.js index bf937002b..2ba342048 100644 --- a/packages/form-js-editor/src/features/dragging/Dragging.js +++ b/packages/form-js-editor/src/features/dragging/Dragging.js @@ -78,8 +78,8 @@ export class Dragging { let targetParentId; if (formFieldNode) { - formField = this._formFieldRegistry.get(formFieldNode.dataset.id); - columns = (formField.layout || {}).columns; + formField = this._formFieldRegistry.get(formFieldNode.dataset.id) || { layout: {} }; + columns = formField.layout.columns; // (1) check for row constraints if (isRow(target)) {