fix deleting notes

This commit is contained in:
zadam
2020-12-17 15:04:04 +01:00
parent 1cc7917b6e
commit f723433970
6 changed files with 48 additions and 51 deletions

View File

@@ -207,6 +207,13 @@ class NoteListRenderer {
}
async renderList() {
if (this.noteIds.length === 0) {
this.$noteList.hide();
return;
}
this.$noteList.show();
const $container = this.$noteList.find('.note-list-container').empty();
const imageLinks = this.parentNote ? this.parentNote.getRelations('imageLink') : [];