fix hiding of linked images in shared notes, closes #2791

This commit is contained in:
zadam
2022-04-15 23:09:07 +02:00
parent 06b6097f29
commit a45cf033aa
3 changed files with 62 additions and 80 deletions

View File

@@ -34,7 +34,7 @@ class Attribute extends AbstractEntity {
const linkedChildNote = this.note.getChildNotes().find(childNote => childNote.noteId === this.value);
if (linkedChildNote) {
const branch = this.shaca.getBranchFromChildAndParent(this.noteId, linkedChildNote.noteId);
const branch = this.shaca.getBranchFromChildAndParent(linkedChildNote.noteId, this.noteId);
branch.isHidden = true;
}