adding null checks to adhoc filter popover (#5111)

This commit is contained in:
Gabe Lyons 2018-05-31 21:00:20 -07:00 committed by Maxime Beauchemin
parent 28611108d7
commit 40fadfcb4f
1 changed files with 4 additions and 2 deletions

View File

@ -141,8 +141,10 @@ export default class AdhocFilterEditPopoverSimpleTabContent extends React.Compon
handleMultiComparatorInputHeightChange() {
if (this.multiComparatorComponent) {
// eslint-disable-next-line no-underscore-dangle
const multiComparatorDOMNode = this.multiComparatorComponent._selectRef.select.control;
/* eslint-disable no-underscore-dangle */
const multiComparatorDOMNode = this.multiComparatorComponent._selectRef &&
this.multiComparatorComponent._selectRef.select &&
this.multiComparatorComponent._selectRef.select.control;
if (multiComparatorDOMNode) {
if (multiComparatorDOMNode.clientHeight !== this.state.multiComparatorHeight) {
this.props.onHeightChange((