2
0

🐛 (typebotLink) Fix nested typebot link pop

This commit is contained in:
Baptiste Arnaud
2023-09-29 11:23:04 +02:00
parent f9a14c0685
commit cd97da2d34
4 changed files with 13 additions and 9 deletions

View File

@ -23,7 +23,7 @@ export const getNextGroup =
isCompleted: true,
hasStarted: state.typebotsQueue[0].answers.length > 0,
})
const newSessionState = {
let newSessionState = {
...state,
typebotsQueue: [
{
@ -69,6 +69,7 @@ export const getNextGroup =
],
} satisfies SessionState
const nextGroup = await getNextGroup(newSessionState)(nextEdgeId)
newSessionState = nextGroup.newSessionState
if (!nextGroup)
return {
newSessionState,