Browse Source

fix: "When visit web" trigger not working

Ahmad Kholid 3 năm trước cách đây
mục cha
commit
ed698c6208
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/background/index.js

+ 1 - 1
src/background/index.js

@@ -155,7 +155,7 @@ async function checkVisitWebTriggers(tabId, tabUrl) {
 
     const matchUrl = tabUrl.match(isRegex ? new RegExp(url, 'g') : url);
 
-    return matchUrl && id !== workflowState.workflowId;
+    return matchUrl && id !== workflowState?.workflowId;
   });
 
   if (triggeredWorkflow) {