1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

fix the spacing

This commit is contained in:
Sosuke Suzuki
2017-05-18 01:27:37 +09:00
parent 9c1179a6f9
commit b86cdb461a

View File

@@ -153,20 +153,20 @@ class StorageItem extends React.Component {
.then((note) => { .then((note) => {
dataApi dataApi
.deleteNote(noteData.storage, noteData.key) .deleteNote(noteData.storage, noteData.key)
.then((data) => { .then((data) => {
let dispatchHandler = () => { let dispatchHandler = () => {
dispatch({ dispatch({
type: 'DELETE_NOTE', type: 'DELETE_NOTE',
storageKey: data.storageKey, storageKey: data.storageKey,
noteKey: data.noteKey noteKey: data.noteKey
}) })
} }
eventEmitter.once('list:moved', dispatchHandler) eventEmitter.once('list:moved', dispatchHandler)
eventEmitter.emit('list:next') eventEmitter.emit('list:next')
})
.catch((err) => {
console.error(err)
}) })
.catch((err) => {
console.error(err)
})
dispatch({ dispatch({
type: 'UPDATE_NOTE', type: 'UPDATE_NOTE',
note: note note: note