mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
add undefined check for branch
unclear why this happens
This commit is contained in:
parent
9771b441ad
commit
536643ed3b
@ -36,7 +36,13 @@ class Attribute extends AbstractEntity {
|
|||||||
if (linkedChildNote) {
|
if (linkedChildNote) {
|
||||||
const branch = this.shaca.getBranchFromChildAndParent(linkedChildNote.noteId, this.noteId);
|
const branch = this.shaca.getBranchFromChildAndParent(linkedChildNote.noteId, this.noteId);
|
||||||
|
|
||||||
branch.isHidden = true;
|
/**
|
||||||
|
* FIXME: why can we have branch is undefined? issue when
|
||||||
|
* sharing and not sharing notes? canvas-note specific?
|
||||||
|
*/
|
||||||
|
if(branch) {
|
||||||
|
branch.isHidden = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user