mistercrunch closed pull request #5111: [Explore][Adhoc Filters] adding null checks to adhoc
filter popover
URL: https://github.com/apache/incubator-superset/pull/5111
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/superset/assets/src/explore/components/AdhocFilterEditPopoverSimpleTabContent.jsx
b/superset/assets/src/explore/components/AdhocFilterEditPopoverSimpleTabContent.jsx
index b35da71012..36b7683cec 100644
--- a/superset/assets/src/explore/components/AdhocFilterEditPopoverSimpleTabContent.jsx
+++ b/superset/assets/src/explore/components/AdhocFilterEditPopoverSimpleTabContent.jsx
@@ -139,8 +139,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((
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
|