Skip to content

Commit

Permalink
adding null checks to adhoc filter popover (apache#5111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Lyons authored and mistercrunch committed Jun 1, 2018
1 parent fba8fb6 commit 2e87aa8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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((
Expand Down

0 comments on commit 2e87aa8

Please sign in to comment.