Skip to content

Commit

Permalink
Update packages/sprotty/src/features/move/move.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Miro Spönemann <[email protected]>
  • Loading branch information
jbicker and spoenemann committed Mar 7, 2024
1 parent 65596fa commit dd4b617
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/sprotty/src/features/move/move.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,8 @@ export class MoveCommand extends MergeableCommand implements IStoppableCommand {
}
return false;
};
const isChildOfMovedElement = recursiveCheck(sourceOrTarget);

return isChildOfMovedElement || Boolean(this.resolvedMoves.get(sourceOrTarget.id));
return Boolean(this.resolvedMoves.get(sourceOrTarget.id)) || recursiveCheck(sourceOrTarget);
};

return Boolean(
Expand Down

0 comments on commit dd4b617

Please sign in to comment.