Browse Source

fix: connecting wrong block

Ahmad Kholid 2 năm trước cách đây
mục cha
commit
5219ea9c62
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  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,
         },
       ]);
     }