Skip to content

Commit

Permalink
🐛 (analytics) Fix possible analytics crash when groupId can't be found
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 4, 2024
1 parent d8924d7 commit a043c3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const BlockNodesList = ({ blocks, groupIndex, groupRef }: Props) => {
x: 0,
y: 0,
})
const groupId = typebot?.groups[groupIndex].id
const groupId = typebot?.groups.at(groupIndex)?.id
const isDraggingOnCurrentGroup =
(draggedBlock || draggedBlockType) && mouseOverGroup?.id === groupId
const showSortPlaceholders = isDefined(draggedBlock || draggedBlockType)
Expand Down

0 comments on commit a043c3e

Please sign in to comment.