mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Remove pinnedNotes from Folder
This commit is contained in:
@@ -293,8 +293,8 @@ class NoteList extends React.Component {
|
||||
|
||||
let folder = _.find(storage.folders, {key: folderKey})
|
||||
if (folder === undefined) return unorderedNotes
|
||||
const pinnedNotes = unorderedNotes.filter((el) => {
|
||||
return el.isPinned
|
||||
const pinnedNotes = unorderedNotes.filter((note) => {
|
||||
return note.isPinned
|
||||
})
|
||||
|
||||
return pinnedNotes.concat(unorderedNotes)
|
||||
|
||||
Reference in New Issue
Block a user