Jelajahi Sumber

fix: condition code not run in the background (#1325)

Ahmad Kholid 1 tahun lalu
induk
melakukan
16a1426039
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/workflowEngine/utils/testConditions.js

+ 1 - 1
src/workflowEngine/utils/testConditions.js

@@ -95,7 +95,7 @@ export default async function (conditionsArr, workflowData) {
         newRefData[keyword] = workflowData.refData[keyword];
       });
 
-      if (workflowData.isMV2) {
+      if (workflowData.isMV2 && data.context !== 'background') {
         conditionValue = await workflowData.sendMessage({
           type: 'condition-builder',
           data: {