mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
update correctly "multi-parent" node status, fixes #1688
This commit is contained in:
@@ -1030,6 +1030,9 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
}
|
||||
|
||||
for (const branch of loadResults.getBranches()) {
|
||||
// adding noteId itself to update all potential clones
|
||||
noteIdsToUpdate.add(branch.noteId);
|
||||
|
||||
for (const node of this.getNodesByBranchId(branch.branchId)) {
|
||||
if (branch.isDeleted) {
|
||||
if (node.isActive()) {
|
||||
@@ -1048,9 +1051,6 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
|
||||
noteIdsToUpdate.add(branch.parentNoteId);
|
||||
}
|
||||
else {
|
||||
noteIdsToUpdate.add(branch.noteId);
|
||||
}
|
||||
}
|
||||
|
||||
if (!branch.isDeleted) {
|
||||
|
||||
Reference in New Issue
Block a user