mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
fix rename bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user