2
0

🐛 (limits) Fix storage limit trigger and e2e tests

This commit is contained in:
Baptiste Arnaud
2022-09-24 08:58:23 +02:00
committed by Baptiste Arnaud
parent 1e26703ad4
commit 30dff2d5d7
52 changed files with 1024 additions and 2205 deletions

View File

@ -80,6 +80,7 @@ export const ConversationContainer = ({
}
const nextGroup = currentTypebot.groups.find(byId(nextEdge.to.groupId))
if (!nextGroup) return onCompleted()
console.log(nextGroup, nextEdge)
const startBlockIndex = nextEdge.to.blockId
? nextGroup.blocks.findIndex(byId(nextEdge.to.blockId))
: 0
@ -151,9 +152,7 @@ export const ConversationContainer = ({
const groupAfter = displayedGroups[idx + 1]
const groupAfterStartsWithInput =
groupAfter &&
isInputBlock(
groupAfter.group.blocks[groupAfter.startBlockIndex] as Block
)
isInputBlock(groupAfter.group.blocks[groupAfter.startBlockIndex])
return (
<ChatGroup
key={displayedGroup.group.id + idx}