@flowgram.ai/free-layout-core 0.1.18 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -2464,10 +2464,7 @@ var WorkflowDragService = class {
2464
2464
  dragNodeType: type,
2465
2465
  dropNode
2466
2466
  });
2467
- if (!allowDrop) {
2468
- return this.clearDrop();
2469
- }
2470
- const dragNode = await this.dropCard(type, e, data, dropNode);
2467
+ const dragNode = allowDrop ? await this.dropCard(type, e, data, dropNode) : void 0;
2471
2468
  this.clearDrop();
2472
2469
  if (dragNode) {
2473
2470
  domNode.remove();