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

use new api for finder

This commit is contained in:
Dick Choi
2016-09-08 18:16:37 +09:00
parent 519ea1a33f
commit 40fc63ea0c
7 changed files with 76 additions and 52 deletions

View File

@@ -54,12 +54,12 @@ class NoteList extends React.Component {
}
render () {
let { storages, notes, index } = this.props
let { storageMap, notes, index } = this.props
let notesList = notes
.slice(0, 10 + 10 * this.state.range)
.map((note, _index) => {
let storage = _.find(storages, {key: note.storage})
let storage = storageMap[note.storage]
let folder = _.find(storage.folders, {key: note.folder})
return (
<NoteItem