Explorar o código

fix: connecting wrong block

Ahmad Kholid %!s(int64=2) %!d(string=hai) anos
pai
achega
5219ea9c62
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      src/newtab/pages/workflows/[id].vue

+ 4 - 4
src/newtab/pages/workflows/[id].vue

@@ -697,10 +697,10 @@ function onClickEditor({ target }) {
     if (!connectionExist) {
       editor.value.addEdges([
         {
-          source: nodeid,
-          sourceHandle: handleid,
-          target: nodeTargetHandle.nodeId,
-          targetHandle: nodeTargetHandle.handleId,
+          target: nodeid,
+          targetHandle: handleid,
+          source: nodeTargetHandle.nodeId,
+          sourceHandle: nodeTargetHandle.handleId,
         },
       ]);
     }