diff --git a/src/components/PopoverWithMeasuredContent.js b/src/components/PopoverWithMeasuredContent.js index a370688c0ab7..adb6498d71ff 100644 --- a/src/components/PopoverWithMeasuredContent.js +++ b/src/components/PopoverWithMeasuredContent.js @@ -62,7 +62,6 @@ class PopoverWithMeasuredContent extends Component { this.popoverHeight = 0; this.measurePopover = this.measurePopover.bind(this); - this.setContentMeasured = this.setContentMeasured.bind(this); } static getDerivedStateFromProps(props, state) { diff --git a/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js b/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js index 37d7c4892e54..4f6b0dcf5ae6 100755 --- a/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js +++ b/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js @@ -1,5 +1,6 @@ import React from 'react'; import {View} from 'react-native'; +import _ from 'underscore'; import getReportActionContextMenuStyles from '../../../../styles/getReportActionContextMenuStyles'; import ContextMenuItem from '../../../../components/ContextMenuItem'; import { @@ -24,7 +25,7 @@ class BaseReportActionContextMenu extends React.Component { render() { return this.props.isVisible && ( - {ContextMenuActions.map(contextAction => contextAction.shouldShow(this.props.reportAction) && ( + {_.map(ContextMenuActions, contextAction => contextAction.shouldShow(this.props.reportAction) && (