diff --git a/packages/bot-engine/continueBotFlow.ts b/packages/bot-engine/continueBotFlow.ts index c144f4f4f..91e70136a 100644 --- a/packages/bot-engine/continueBotFlow.ts +++ b/packages/bot-engine/continueBotFlow.ts @@ -341,10 +341,6 @@ const saveAnswerInDb = (state: SessionState, block: InputBlock) => async (reply: string): Promise => { let newSessionState = state - const groupId = state.typebotsQueue[0].typebot.groups.find((group) => - group.blocks.some((blockInGroup) => blockInGroup.id === block.id) - )?.id - if (!groupId) throw new Error('saveAnswer: Group not found') await saveAnswer({ answer: { blockId: block.id,