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

fix rename bug

This commit is contained in:
Dick Choi
2016-09-20 13:54:17 +09:00
parent 240b5daf3e
commit 79d0006f3f
2 changed files with 7 additions and 4 deletions

View File

@@ -319,14 +319,15 @@ class StorageItem extends React.Component {
name: this.refs.label.value
})
}
handleLabelBlur (e) {
let { storage } = this.props
dataApi
.renameStorage(storage.key, this.state.name)
.then((storage) => {
.then((_storage) => {
store.dispatch({
type: 'RENAME_STORAGE',
storage: storage
storage: _storage
})
this.setState({
isLabelEditing: false