Browse Source

fix: dragged block getting inserted

Ahmad Kholid 2 years ago
parent
commit
10df6f63ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/newtab/pages/workflows/[id].vue

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

@@ -1306,7 +1306,7 @@ function onDropInEditor({ dataTransfer, clientX, clientY, target }) {
   }
 
   const block = parseJSON(dataTransfer.getData('block'), null);
-  if (!block) return;
+  if (!block || block.fromBlockBasic) return;
 
   if (block.id === 'trigger' && isPackage) return;