Skip to content

Commit ac79ed5

Browse files
marcochavezfOSBotify
authored andcommitted
Merge pull request #78866 from situchan/revert-78283-fix/74125
[CP Staging] Revert "Fix/74125 - Details report page is not scrollable" (cherry picked from commit 7f878a9) (cherry-picked to staging by roryabraham)
1 parent 8714fb0 commit ac79ed5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/pages/home/ReportScreen.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -593,12 +593,7 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr
593593

594594
const prevTransactionThreadReportID = usePrevious(transactionThreadReportID);
595595
useEffect(() => {
596-
// If transactionThreadReportID is undefined or CONST.FAKE_REPORT_ID, we do not call fetchReport.
597-
// Only when transactionThreadReportID changes to a valid value, the fetchReport will be called to fetch the data again for the current report.
598-
// Since fetchReport is always called once when opening a report,
599-
// if that initial call is used to create a transactionThreadReport,
600-
// then fetchReport needs to be called again after the transactionThreadReport has been fully created.
601-
if ((!!prevTransactionThreadReportID && prevTransactionThreadReportID !== CONST.FAKE_REPORT_ID) || !transactionThreadReportID || transactionThreadReportID === CONST.FAKE_REPORT_ID) {
596+
if (!!prevTransactionThreadReportID || !transactionThreadReportID) {
602597
return;
603598
}
604599

0 commit comments

Comments
 (0)