fix(tree): fix error when moving a note to its parent node
Some checks are pending
Checks / main (push) Waiting to run

This commit is contained in:
SiriusXT 2025-11-18 15:37:20 +08:00
parent a6586c9d1c
commit 9226b165bd

View File

@ -176,11 +176,6 @@ async function moveNodeUpInHierarchy(node: Fancytree.FancytreeNode) {
toastService.showError(resp.message); toastService.showError(resp.message);
return; return;
} }
if (!hoistedNoteService.isTopLevelNode(node) && node.getParent().getChildren().length <= 1) {
node.getParent().folder = false;
node.getParent().renderTitle();
}
} }
function filterSearchBranches(branchIds: string[]) { function filterSearchBranches(branchIds: string[]) {