mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
🚑️ Check if state has currentBlockId defined before autocontinuing
This commit is contained in:
parent
5a770d30f2
commit
4d7423ed3a
@ -69,12 +69,14 @@ export const continueChat = async ({
|
||||
lastMessageNewFormat,
|
||||
visitedEdges,
|
||||
setVariableHistory,
|
||||
} = await autoContinueChatIfStartingWithInput({
|
||||
message,
|
||||
chatReply,
|
||||
textBubbleContentFormat,
|
||||
version: 2,
|
||||
});
|
||||
} = !session.state.currentBlockId
|
||||
? await autoContinueChatIfStartingWithInput({
|
||||
message,
|
||||
chatReply,
|
||||
textBubbleContentFormat,
|
||||
version: 2,
|
||||
})
|
||||
: chatReply;
|
||||
|
||||
if (newSessionState)
|
||||
await saveStateToDatabase({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user