Sfoglia il codice sorgente

fix: connecting wrong block

Ahmad Kholid 2 anni fa
parent
commit
5219ea9c62
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  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,
         },
       ]);
     }