Skip to content

Commit 9226b16

Browse files
committed
fix(tree): fix error when moving a note to its parent node
1 parent a6586c9 commit 9226b16

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

apps/client/src/services/branches.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,6 @@ async function moveNodeUpInHierarchy(node: Fancytree.FancytreeNode) {
176176
toastService.showError(resp.message);
177177
return;
178178
}
179-
180-
if (!hoistedNoteService.isTopLevelNode(node) && node.getParent().getChildren().length <= 1) {
181-
node.getParent().folder = false;
182-
node.getParent().renderTitle();
183-
}
184179
}
185180

186181
function filterSearchBranches(branchIds: string[]) {

0 commit comments

Comments
 (0)