@flowgram.ai/free-layout-core 0.1.15 → 0.1.17

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
@@ -2709,7 +2709,10 @@ var WorkflowDragService = class {
2709
2709
  this.setLineColor(line, this.linesManager.lineColor.drawing);
2710
2710
  if (toNode && !this.isContainer(toNode)) {
2711
2711
  const portsData = toNode.getData(WorkflowNodePortsData);
2712
- toPort = portsData.inputPorts[0];
2712
+ const { inputPorts } = portsData;
2713
+ if (inputPorts.length === 1) {
2714
+ toPort = inputPorts[0];
2715
+ }
2713
2716
  const { hasError } = this.handleDragOnNode(toNode, fromPort, line, toPort, originLine);
2714
2717
  lineErrorReset = hasError;
2715
2718
  }