2
0

🐛 Fix crash when outgoing edge blockId does not exist

This commit is contained in:
Baptiste Arnaud
2023-01-31 08:52:00 +01:00
parent 3851b2d70b
commit 58ca1c3ad6
3 changed files with 10 additions and 2 deletions

View File

@ -78,7 +78,10 @@ export const ConversationContainer = ({
onNewGroupVisible(nextEdge)
setDisplayedGroups([
...displayedGroups,
{ group: nextGroup, startBlockIndex },
{
group: nextGroup,
startBlockIndex: startBlockIndex === -1 ? 0 : startBlockIndex,
},
])
}