Skip to content

Commit

Permalink
revert: prevent drag and drop from accessing prop when undefined
Browse files Browse the repository at this point in the history
Reverts #1219
  • Loading branch information
Skaiir committed Aug 6, 2024
1 parent 0f0d978 commit bea07f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/form-js-editor/src/features/dragging/Dragging.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export class Dragging {
let targetParentId;

if (formFieldNode) {
formField = this._formFieldRegistry.get(formFieldNode.dataset.id) || { layout: {} };
columns = formField.layout.columns;
formField = this._formFieldRegistry.get(formFieldNode.dataset.id);
columns = (formField.layout || {}).columns;

// (1) check for row constraints
if (isRow(target)) {
Expand Down

0 comments on commit bea07f4

Please sign in to comment.