better activation behavior when move notes

This commit is contained in:
zadam
2020-03-29 22:54:14 +02:00
parent ca0e36ea81
commit 5024454914
2 changed files with 18 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ async function moveBranchToParent(req) {
const newNotePos = maxNotePos === null ? 0 : maxNotePos + 10;
const newBranch = branchToMove.createClone(parentNoteId, newNotePos);
newBranch.isExpanded = true;
await newBranch.save();
branchToMove.isDeleted = true;