2
0

🐛 (viewer) load a bot without a start edge

This commit is contained in:
Baptiste Arnaud
2022-09-10 14:21:21 +02:00
parent ae5d5b795d
commit b64f787cf5

View File

@ -100,10 +100,10 @@ export const ConversationContainer = ({
updateVariables(prefilledVariables)
}
setHasStarted(true)
const startEdge = typebot.groups[0].blocks[0].outgoingEdgeId
if (!startEdge && !startGroupId) return
displayNextGroup({
edgeId: startGroupId
? undefined
: typebot.groups[0].blocks[0].outgoingEdgeId,
edgeId: startGroupId ? undefined : startEdge,
groupId: startGroupId,
})
// eslint-disable-next-line react-hooks/exhaustive-deps