1
0
Эх сурвалжийг харах

fix: repeat task block only execute once

Ahmad Kholid 2 жил өмнө
parent
commit
c51c796afd

+ 1 - 1
src/background/workflowEngine/blocksHandler/handlerRepeatTask.js

@@ -2,7 +2,7 @@ function repeatTask({ data, id }) {
   return new Promise((resolve) => {
     const repeat = Number.isNaN(+data.repeatFor) ? 0 : +data.repeatFor;
 
-    if (this.repeatedTasks[id] > repeat) {
+    if (this.repeatedTasks[id] > repeat || !this.getBlockConnections(id, 2)) {
       delete this.repeatedTasks[id];
 
       resolve({