mirror of
https://github.com/zadam/trilium.git
synced 2025-01-17 04:27:56 +08:00
small fixes
This commit is contained in:
parent
f2cf361acf
commit
d288c1b052
2 changed files with 8 additions and 2 deletions
|
@ -88,4 +88,10 @@ export default class NotePathsWidget extends TabAwareWidget {
|
||||||
|
|
||||||
this.$notePathList.append(noteLink);
|
this.$notePathList.append(noteLink);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entitiesReloadedEvent({loadResults}) {
|
||||||
|
if (loadResults.getBranches().find(branch => branch.noteId === this.noteId)) {
|
||||||
|
this.refresh();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -486,11 +486,11 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||||
|
|
||||||
if (!branch.isDeleted) {
|
if (!branch.isDeleted) {
|
||||||
for (const parentNode of this.getNodesByNoteId(branch.parentNoteId)) {
|
for (const parentNode of this.getNodesByNoteId(branch.parentNoteId)) {
|
||||||
if (!parentNode.isLoaded()) {
|
if (parentNode.isFolder() && !parentNode.isLoaded()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const found = parentNode.getChildren().find(child => child.data.noteId === branch.noteId);
|
const found = (parentNode.getChildren() || []).find(child => child.data.noteId === branch.noteId);
|
||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
noteIdsToReload.add(branch.parentNoteId);
|
noteIdsToReload.add(branch.parentNoteId);
|
||||||
|
|
Loading…
Reference in a new issue