mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
update correctly "multi-parent" node status, fixes #1688
This commit is contained in:
parent
7572ee284b
commit
cb6d35236c
@ -92,7 +92,7 @@ export default class Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (glob.isDev) {
|
if (glob.isDev) {
|
||||||
await utils.timeLimit(promise, 3000, `Time limit failed on ${this.constructor.name} with ${fun.name}`);
|
await utils.timeLimit(promise, 20000, `Time limit failed on ${this.constructor.name} with ${fun.name}`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// cheaper and in non-dev the extra reporting is lost anyway through reload
|
// cheaper and in non-dev the extra reporting is lost anyway through reload
|
||||||
|
@ -1030,6 +1030,9 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const branch of loadResults.getBranches()) {
|
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)) {
|
for (const node of this.getNodesByBranchId(branch.branchId)) {
|
||||||
if (branch.isDeleted) {
|
if (branch.isDeleted) {
|
||||||
if (node.isActive()) {
|
if (node.isActive()) {
|
||||||
@ -1048,9 +1051,6 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||||||
|
|
||||||
noteIdsToUpdate.add(branch.parentNoteId);
|
noteIdsToUpdate.add(branch.parentNoteId);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
noteIdsToUpdate.add(branch.noteId);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!branch.isDeleted) {
|
if (!branch.isDeleted) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user