@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 +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
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
|
-
|
|
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
|
}
|