1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00

Merge pull request #892 from asmsuechan/fix-typo

Fix typo addNotes to addNotesFromFiles
This commit is contained in:
SuenagaRyota
2017-09-23 12:34:15 +09:00
committed by GitHub

View File

@@ -357,7 +357,7 @@ class NoteList extends React.Component {
e.preventDefault() e.preventDefault()
const { location } = this.props const { location } = this.props
const filepaths = Array.from(e.dataTransfer.files).map(file => { return file.path }) const filepaths = Array.from(e.dataTransfer.files).map(file => { return file.path })
if (!location.pathname.match(/\/trashed/)) this.addNotes(filepaths) if (!location.pathname.match(/\/trashed/)) this.addNotesFromFiles(filepaths)
} }
// Add notes to the current folder // Add notes to the current folder