1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Change name Pinn to Pin

This commit is contained in:
asmsuechan
2017-10-11 14:56:41 +09:00
parent 6440395197
commit 0e312ba929

View File

@@ -284,7 +284,7 @@ class NoteList extends React.Component {
return folderNoteKeyList.map((uniqueKey) => data.noteMap.get(uniqueKey))
}
sortByPinn (unorderedNotes) {
sortByPin (unorderedNotes) {
const { data, params } = this.props
let storageKey = params.storageKey
let folderKey = params.folderKey
@@ -494,7 +494,7 @@ class NoteList extends React.Component {
? sortByAlphabetical
: sortByUpdatedAt
const sortedNotes = this.getNotes().sort(sortFunc)
this.notes = notes = this.sortByPinn(sortedNotes)
this.notes = notes = this.sortByPin(sortedNotes)
.filter((note) => {
// this is for the trash box
if (note.isTrashed !== true || location.pathname === '/trashed') return true