Skip to content

Commit

Permalink
fix group center not considered as valid drop point
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Sep 17, 2024
1 parent 58133d1 commit 3d9cb5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/SortableList/sortableList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
Expand Down

0 comments on commit 3d9cb5f

Please sign in to comment.