From 3ff1a5f752b23165c3e267e1af318908a1e4fdf7 Mon Sep 17 00:00:00 2001 From: Hunter Trujillo Date: Fri, 19 May 2017 16:34:41 -0600 Subject: [PATCH] Remove explicit setState. --- ui/src/dashboards/components/DashboardHeaderEdit.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/dashboards/components/DashboardHeaderEdit.js b/ui/src/dashboards/components/DashboardHeaderEdit.js index b976d895af..2adf97fd8d 100644 --- a/ui/src/dashboards/components/DashboardHeaderEdit.js +++ b/ui/src/dashboards/components/DashboardHeaderEdit.js @@ -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() } }