remove branch bugfix

This commit is contained in:
Tom 2022-05-09 16:47:28 +02:00
parent f85ed672cc
commit 358e8c548c

View File

@ -36,16 +36,9 @@ class Attribute extends AbstractEntity {
if (linkedChildNote) {
const branch = this.shaca.getBranchFromChildAndParent(linkedChildNote.noteId, this.noteId);
/**
* FIXME: why can we have branch is undefined? issue when
* sharing and not sharing notes? canvas-note specific?
* This error occured during development.
*/
if(branch) {
branch.isHidden = true;
}
}
}
if (this.type === 'label' && this.name === 'shareAlias' && this.value.trim()) {
this.shaca.aliasToNote[this.value.trim()] = this.note;