2
0

🐛 (analytics) Fix possible analytics crash when groupId can't be found

This commit is contained in:
Baptiste Arnaud
2024-03-04 13:27:31 +01:00
parent d8924d7f43
commit a043c3e4b9

View File

@ -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)