@flowgram.ai/free-layout-core 0.1.16 → 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/index.js CHANGED
@@ -2763,7 +2763,10 @@ var WorkflowDragService = class {
2763
2763
  this.setLineColor(line, this.linesManager.lineColor.drawing);
2764
2764
  if (toNode && !this.isContainer(toNode)) {
2765
2765
  const portsData = toNode.getData(WorkflowNodePortsData);
2766
- toPort = portsData.inputPorts[0];
2766
+ const { inputPorts } = portsData;
2767
+ if (inputPorts.length === 1) {
2768
+ toPort = inputPorts[0];
2769
+ }
2767
2770
  const { hasError } = this.handleDragOnNode(toNode, fromPort, line, toPort, originLine);
2768
2771
  lineErrorReset = hasError;
2769
2772
  }