fix: allow moving a group after another

This commit is contained in:
Carlos Valente
2025-09-09 15:59:39 +02:00
committed by Carlos Valente
parent 5441e5b07f
commit 890a97d071
@@ -41,9 +41,9 @@ export function canDrop(
order?: 'after' | 'before',
isTargetCollapsed?: boolean,
): boolean {
// this would mean inserting a group inside another
// inserting before would mean adding a group inside another
if (targetType === 'end-group') {
return false;
return order === 'after';
}
// this means swapping places with another group