1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-18 20:21:44 +00:00

Merge pull request #160 from tejado/master

Fix of storage unlink in preference popup
This commit is contained in:
Junyoung Choi
2016-10-22 16:50:47 +09:00
committed by GitHub

View File

@@ -300,10 +300,10 @@ class StorageItem extends React.Component {
}) })
if (index === 0) { if (index === 0) {
let { storage, dispatch } = this.props let { storage } = this.props
dataApi.removeStorage(storage.key) dataApi.removeStorage(storage.key)
.then(() => { .then(() => {
dispatch({ store.dispatch({
type: 'REMOVE_STORAGE', type: 'REMOVE_STORAGE',
storageKey: storage.key storageKey: storage.key
}) })