Kaynağa Gözat

fix: connecting wrong block

Ahmad Kholid 2 yıl önce
ebeveyn
işleme
5219ea9c62
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  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,
         },
       ]);
     }