🐛 (viewer) load a bot without a start edge
This commit is contained in:
@@ -100,10 +100,10 @@ export const ConversationContainer = ({
|
|||||||
updateVariables(prefilledVariables)
|
updateVariables(prefilledVariables)
|
||||||
}
|
}
|
||||||
setHasStarted(true)
|
setHasStarted(true)
|
||||||
|
const startEdge = typebot.groups[0].blocks[0].outgoingEdgeId
|
||||||
|
if (!startEdge && !startGroupId) return
|
||||||
displayNextGroup({
|
displayNextGroup({
|
||||||
edgeId: startGroupId
|
edgeId: startGroupId ? undefined : startEdge,
|
||||||
? undefined
|
|
||||||
: typebot.groups[0].blocks[0].outgoingEdgeId,
|
|
||||||
groupId: startGroupId,
|
groupId: startGroupId,
|
||||||
})
|
})
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
|||||||
Reference in New Issue
Block a user