fix usage of async .getHeaders()

This commit is contained in:
zadam
2020-12-03 21:50:41 +01:00
parent 5f4f0d3086
commit bc520edd19
10 changed files with 69 additions and 77 deletions

View File

@@ -245,10 +245,7 @@ class NoteListRenderer {
}
// TODO: we should also render (promoted) attributes
// FIXME: showing specific path might be necessary because of a match in the patch
async renderNote(note, expand = false) {
const notePath = /*this.notePath + '/' + */ note.noteId;
const $expander = $('<span class="note-expander bx bx-chevron-right"></span>');
const $card = $('<div class="note-book-card">')
@@ -256,7 +253,7 @@ class NoteListRenderer {
.append(
$('<h5 class="note-book-title">')
.append($expander)
.append(await linkService.createNoteLink(notePath, {showTooltip: false}))
.append(await linkService.createNoteLink(note.noteId, {showTooltip: false}))
);
$expander.on('click', () => this.toggleContent($card, note, !$card.hasClass("expanded")));