mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
fix the spacing
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user