fix broken what links here widget

This commit is contained in:
zadam
2020-09-05 22:45:26 +02:00
parent 6d095b7250
commit 874972a3d3
4 changed files with 15 additions and 3 deletions

View File

@@ -481,6 +481,17 @@ class NoteShort {
.map(attributeId => this.treeCache.attributes[attributeId]);
}
/**
* Get relations which target this note
*
* @returns {NoteShort[]}
*/
async getTargetRelationSourceNotes() {
const targetRelations = this.getTargetRelations();
return await this.treeCache.getNotes(targetRelations.map(tr => tr.noteId));
}
/**
* Return note complement which is most importantly note's content
*