🐛 (analytics) Fix possible analytics crash when groupId can't be found
This commit is contained in:
@ -40,7 +40,7 @@ export const BlockNodesList = ({ blocks, groupIndex, groupRef }: Props) => {
|
|||||||
x: 0,
|
x: 0,
|
||||||
y: 0,
|
y: 0,
|
||||||
})
|
})
|
||||||
const groupId = typebot?.groups[groupIndex].id
|
const groupId = typebot?.groups.at(groupIndex)?.id
|
||||||
const isDraggingOnCurrentGroup =
|
const isDraggingOnCurrentGroup =
|
||||||
(draggedBlock || draggedBlockType) && mouseOverGroup?.id === groupId
|
(draggedBlock || draggedBlockType) && mouseOverGroup?.id === groupId
|
||||||
const showSortPlaceholders = isDefined(draggedBlock || draggedBlockType)
|
const showSortPlaceholders = isDefined(draggedBlock || draggedBlockType)
|
||||||
|
Reference in New Issue
Block a user