Переглянути джерело

fix: connecting wrong block

Ahmad Kholid 2 роки тому
батько
коміт
5219ea9c62
1 змінених файлів з 4 додано та 4 видалено
  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,
         },
       ]);
     }