From 3d9cb5f32d6f879420aa392b5a5be90d31010d7c Mon Sep 17 00:00:00 2001 From: Ruben Thoms Date: Tue, 17 Sep 2024 16:26:00 +0200 Subject: [PATCH] fix group center not considered as valid drop point --- frontend/src/lib/components/SortableList/sortableList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/SortableList/sortableList.tsx b/frontend/src/lib/components/SortableList/sortableList.tsx index 5dbe7cb1f..967d47a2b 100644 --- a/frontend/src/lib/components/SortableList/sortableList.tsx +++ b/frontend/src/lib/components/SortableList/sortableList.tsx @@ -327,7 +327,7 @@ export function SortableList(props: SortableListProps): React.ReactNode { const draggedElementParentId = draggedElementInfo.parent?.id ?? null; if ( - hoveredElementAndArea.area !== HoveredArea.HEADER && + ![HoveredArea.HEADER, HoveredArea.CENTER].includes(hoveredElementAndArea.area) && draggedElementParentId === getGroupId(getItemParent(hoveredElementAndArea.element)) && newPosition === currentPosition ) {