diff --git a/packages/logic/computeResultTranscript.ts b/packages/logic/computeResultTranscript.ts index f77d2cc1f..40f47b6eb 100644 --- a/packages/logic/computeResultTranscript.ts +++ b/packages/logic/computeResultTranscript.ts @@ -132,7 +132,7 @@ const executeGroup = ({ nextGroup.blockIndex ?? 0 )) { if (stopAtBlockId && block.id === stopAtBlockId) return currentTranscript - if (setVariableHistory.at(0)?.blockId === block.id) + while (setVariableHistory.at(0)?.blockId === block.id) typebotsQueue[0].typebot.variables = applySetVariable( setVariableHistory.shift(), typebotsQueue[0].typebot