1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Improve some

This commit is contained in:
asmsuechan
2017-10-12 17:01:25 +09:00
parent 70468b6b7d
commit da6b8c30a0

View File

@@ -238,8 +238,9 @@ class NoteList extends React.Component {
let { router } = this.context
if (location.pathname.match(/\/home/)) {
this.contextNotes = data.noteMap.map((note) => note)
return data.noteMap.map((note) => note)
const allNotes = data.noteMap.map((note) => note)
this.contextNotes = allNotes
return allNotes
}
if (location.pathname.match(/\/starred/)) {
@@ -263,7 +264,7 @@ class NoteList extends React.Component {
return this.getContextNotes()
}
// get notes in a specific folder
// get notes in the current folder
getContextNotes () {
let { data, params } = this.props
let storageKey = params.storageKey