浏览代码

fix: workflow still execute when it's disabled

Ahmad Kholid 3 年之前
父节点
当前提交
b4ce72536e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/background/index.js

+ 2 - 0
src/background/index.js

@@ -50,6 +50,8 @@ const workflow = {
     return findWorkflow;
   },
   execute(workflowData, options) {
+    if (workflowData.isDisabled) return null;
+
     if (workflowData.isProtected) {
       const flow = parseJSON(workflowData.drawflow, null);