diff --git a/client/src/app/shared/components/sorting-tree/sorting-tree.component.ts b/client/src/app/shared/components/sorting-tree/sorting-tree.component.ts index 6103451c7..be5f9b30e 100644 --- a/client/src/app/shared/components/sorting-tree/sorting-tree.component.ts +++ b/client/src/app/shared/components/sorting-tree/sorting-tree.component.ts @@ -708,7 +708,7 @@ export class SortingTreeComponent implemen if (node.level > 0) { // const previousNode = this.osTreeData[previousIndex - 1]; const previousNode = this.getNextVisibleNode(this.osTreeData[previousIndex - 1], Direction.UPWARDS); - const onlyChild = this.getChildNodes(previousNode).length === 1; + const onlyChild = this.getUnfilteredChildNodes(previousNode).length === 1; const isMovedLowerLevel = previousIndex === nextIndex && nextLevel <= previousNode.level && onlyChild; const isMovedAway = previousIndex !== nextIndex && onlyChild;