mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-12 17:26:17 +00:00
Reverse notes after filtering
This commit is contained in:
committed by
Junyoung Choi
parent
d706a5375c
commit
afbe43965e
@@ -1144,12 +1144,12 @@ class NoteList extends React.Component {
|
||||
const sortedNotes = location.pathname.match(/\/starred|\/trash/)
|
||||
? this.getNotes().sort(sortFunc)
|
||||
: this.sortByPin(this.getNotes().sort(sortFunc))
|
||||
if (sortDir === 'DESCENDING') sortedNotes.reverse()
|
||||
this.notes = notes = sortedNotes.filter(note => {
|
||||
// this is for the trash box
|
||||
if (note.isTrashed !== true || location.pathname === '/trashed')
|
||||
return true
|
||||
})
|
||||
if (sortDir === 'DESCENDING') this.notes.reverse()
|
||||
|
||||
moment.updateLocale('en', {
|
||||
relativeTime: {
|
||||
|
||||
Reference in New Issue
Block a user