2
0

🐛 (transcript) Make sure to set all the set variables that matches the same block

Closes #1664
This commit is contained in:
Baptiste Arnaud
2024-07-29 10:37:52 +02:00
parent da908ffe90
commit 91de79b502

View File

@ -132,7 +132,7 @@ const executeGroup = ({
nextGroup.blockIndex ?? 0 nextGroup.blockIndex ?? 0
)) { )) {
if (stopAtBlockId && block.id === stopAtBlockId) return currentTranscript 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( typebotsQueue[0].typebot.variables = applySetVariable(
setVariableHistory.shift(), setVariableHistory.shift(),
typebotsQueue[0].typebot typebotsQueue[0].typebot