mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
🐛 (transcript) Revert incorrect recursive set variable at same block
This commit is contained in:
parent
2ac543a4a8
commit
58d3955e01
@ -26,7 +26,7 @@ test('Transcript set variable should be correctly computed', async ({
|
||||
page.getByText('Assistant: "How are you? You said hey"')
|
||||
).toBeVisible()
|
||||
await expect(
|
||||
page.getByText('Assistant: "How are you? You said hey 3"')
|
||||
page.getByText('Assistant: "How are you? You said hey 2"')
|
||||
).toBeVisible()
|
||||
await expect(page.getByText('User: "hey"')).toBeVisible()
|
||||
await expect(page.getByText('User: "hey 2"')).toBeVisible()
|
||||
|
||||
@ -132,7 +132,7 @@ const executeGroup = ({
|
||||
nextGroup.blockIndex ?? 0
|
||||
)) {
|
||||
if (stopAtBlockId && block.id === stopAtBlockId) return currentTranscript
|
||||
while (setVariableHistory.at(0)?.blockId === block.id)
|
||||
if (setVariableHistory.at(0)?.blockId === block.id)
|
||||
typebotsQueue[0].typebot.variables = applySetVariable(
|
||||
setVariableHistory.shift(),
|
||||
typebotsQueue[0].typebot
|
||||
|
||||
Loading…
Reference in New Issue
Block a user