diff --git a/ui/src/dashboards/components/DisplayOptions.js b/ui/src/dashboards/components/DisplayOptions.js index 17476bcff3..0a09db7e61 100644 --- a/ui/src/dashboards/components/DisplayOptions.js +++ b/ui/src/dashboards/components/DisplayOptions.js @@ -17,11 +17,9 @@ class DisplayOptions extends Component { } componentWillReceiveProps(nextProps) { - if (nextProps.queryConfigs.length !== this.props.queryConfigs.length) { - const {axes, queryConfigs} = nextProps + const {axes, queryConfigs} = nextProps - this.setState({axes: this.setDefaultLabels(axes, queryConfigs)}) - } + this.setState({axes: this.setDefaultLabels(axes, queryConfigs)}) } setDefaultLabels(axes, queryConfigs) {