From 91de79b502ef46f32d23081d582afb4e796beb00 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 29 Jul 2024 10:37:52 +0200 Subject: [PATCH] :bug: (transcript) Make sure to set all the set variables that matches the same block Closes #1664 --- packages/logic/computeResultTranscript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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