Remove explicit setState.

pull/10616/head
Hunter Trujillo 2017-05-19 16:34:41 -06:00
parent e103da8856
commit 3ff1a5f752
1 changed files with 1 additions and 2 deletions

View File

@ -23,9 +23,8 @@ class DashboardEditHeader extends Component {
}
handleKeyUp(e) {
const {dashboard: {name}, onCancel} = this.props
const {onCancel} = this.props
if (e.key === 'Escape') {
this.setState({name})
onCancel()
}
}