Browse Source

fix: "When visit web" trigger not working

Ahmad Kholid 3 years ago
parent
commit
ed698c6208
1 changed files with 1 additions and 1 deletions
  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) {