mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Improve some
This commit is contained in:
@@ -238,8 +238,9 @@ class NoteList extends React.Component {
|
|||||||
let { router } = this.context
|
let { router } = this.context
|
||||||
|
|
||||||
if (location.pathname.match(/\/home/)) {
|
if (location.pathname.match(/\/home/)) {
|
||||||
this.contextNotes = data.noteMap.map((note) => note)
|
const allNotes = data.noteMap.map((note) => note)
|
||||||
return data.noteMap.map((note) => note)
|
this.contextNotes = allNotes
|
||||||
|
return allNotes
|
||||||
}
|
}
|
||||||
|
|
||||||
if (location.pathname.match(/\/starred/)) {
|
if (location.pathname.match(/\/starred/)) {
|
||||||
@@ -263,7 +264,7 @@ class NoteList extends React.Component {
|
|||||||
return this.getContextNotes()
|
return this.getContextNotes()
|
||||||
}
|
}
|
||||||
|
|
||||||
// get notes in a specific folder
|
// get notes in the current folder
|
||||||
getContextNotes () {
|
getContextNotes () {
|
||||||
let { data, params } = this.props
|
let { data, params } = this.props
|
||||||
let storageKey = params.storageKey
|
let storageKey = params.storageKey
|
||||||
|
|||||||
Reference in New Issue
Block a user