Ver código fonte

fix: workflow get execute when it disabled

Ahmad Kholid 2 anos atrás
pai
commit
630f4d4ac3
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/background/index.js

+ 2 - 1
src/background/index.js

@@ -256,7 +256,8 @@ async function checkVisitWebTriggers(tabId, tabUrl) {
     }
 
     const workflowData = await workflow.get(workflowId);
-    if (workflowData) workflow.execute(workflowData, { tabId });
+    if (workflowData && !workflow.isDisabled)
+      workflow.execute(workflowData, { tabId });
   }
 }
 async function checkRecordingWorkflow(tabId, tabUrl) {