Skip to content
Prev Previous commit
Next Next commit
Improve some
  • Loading branch information
asmsuechan committed Oct 12, 2017
commit da6b8c30a01c585ec8d441c6c70fa35c5c9bbfd4
7 changes: 4 additions & 3 deletions browser/main/NoteList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/)) {
Expand All @@ -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
Expand Down