From c5ce2e4707f6197ba999ca4db4bf017fa4740ee9 Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Wed, 2 Aug 2017 16:11:25 -0700 Subject: [PATCH] Prevent clobbering of label when bounds are set --- ui/src/dashboards/components/CellEditorOverlay.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/dashboards/components/CellEditorOverlay.js b/ui/src/dashboards/components/CellEditorOverlay.js index c1a1cfe360..48859abe05 100644 --- a/ui/src/dashboards/components/CellEditorOverlay.js +++ b/ui/src/dashboards/components/CellEditorOverlay.js @@ -96,7 +96,9 @@ class CellEditorOverlay extends Component { const {min, max} = e.target.form const {axes} = this.state - this.setState({axes: {...axes, y: {bounds: [min.value, max.value]}}}) + this.setState({ + axes: {...axes, y: {...axes.y, bounds: [min.value, max.value]}}, + }) e.preventDefault() }