Skip to content

Commit

Permalink
Fix move in call list functionality (#2861)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisa-beerboom authored Oct 17, 2023
1 parent aed8fca commit f0e64c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export class TreeService {

/**
* Removes the `item`-property from any node in the given tree.
* Deletes empty children-arrays.
*
* @param tree The tree with items
* @returns The tree without items
Expand All @@ -188,7 +189,7 @@ export class TreeService {
id: node.id
};
if (node.children) {
nodeWithoutItem.children = this.stripTree(node.children);
nodeWithoutItem.children = node.children.length ? this.stripTree(node.children) : undefined;
}
return nodeWithoutItem;
});
Expand Down

0 comments on commit f0e64c4

Please sign in to comment.