mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-07 08:23:55 +00:00
fix: allow moving a group after another
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user