From c2be3029b4f30a379794246c6e81e92935ca2637 Mon Sep 17 00:00:00 2001 From: Alex Beaman Date: Tue, 7 Dec 2021 13:10:46 +0200 Subject: [PATCH] Revert unknown report check due to regression --- src/pages/home/ReportScreen.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index ec655e1d5d13..831cb35085c4 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -3,7 +3,6 @@ import {withOnyx} from 'react-native-onyx'; import PropTypes from 'prop-types'; import {Keyboard, View} from 'react-native'; import _ from 'underscore'; -import lodashGet from 'lodash/get'; import styles from '../../styles/styles'; import ScreenWrapper from '../../components/ScreenWrapper'; import HeaderView from './HeaderView'; @@ -147,7 +146,7 @@ class ReportScreen extends React.Component { */ storeCurrentlyViewedReport() { const reportID = getReportID(this.props.route); - if (_.isNaN(reportID) || !lodashGet(this.props.report, 'reportID', '')) { + if (_.isNaN(reportID)) { Report.handleInaccessibleReport(); return; }