Remove faulty update props guard

pull/10616/head
Jared Scheib 2017-08-09 15:37:47 -07:00
parent d8963ca813
commit bd7caa2797
1 changed files with 2 additions and 4 deletions

View File

@ -17,11 +17,9 @@ class DisplayOptions extends Component {
} }
componentWillReceiveProps(nextProps) { 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) { setDefaultLabels(axes, queryConfigs) {