mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
fixes for undefined parent note #3066
This commit is contained in:
@@ -105,7 +105,7 @@ class Branch extends AbstractEntity {
|
||||
return this.childNote;
|
||||
}
|
||||
|
||||
/** @returns {Note} */
|
||||
/** @returns {Note|undefined} - root branch will have undefined parent, all other branches have to have a parent note */
|
||||
get parentNote() {
|
||||
if (!(this.parentNoteId in this.becca.notes) && this.parentNoteId !== 'none') {
|
||||
// entities can come out of order in sync/import, create skeleton which will be filled later
|
||||
|
||||
Reference in New Issue
Block a user