fixed some incorrect order by behavior, #1881

This commit is contained in:
zadam
2021-04-22 20:28:26 +02:00
parent 02988ed2b3
commit b5674223e5
6 changed files with 45 additions and 7 deletions

View File

@@ -317,7 +317,9 @@ class NoteListRenderer {
const $expander = $('<span class="note-expander bx bx-chevron-right"></span>');
const {$renderedAttributes} = await attributeRenderer.renderNormalAttributes(note);
const notePath = this.parentNote.noteId + '/' + note.noteId;
const notePath = this.parentNote.type === 'search'
? note.noteId // for search note parent we want to display non-search path
: this.parentNote.noteId + '/' + note.noteId;
const $card = $('<div class="note-book-card">')
.attr('data-note-id', note.noteId)