Skip to content

Commit 7ab8a21

Browse files
committed
update other places
1 parent c31d429 commit 7ab8a21

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ function MoneyRequestReportActionsList({onLayout}: MoneyRequestReportListProps)
670670
ref={wrapperViewRef}
671671
>
672672
<SelectionToolbar
673-
reportID={report.reportID}
673+
reportID={reportIDFromRoute}
674674
transactions={transactions}
675675
reportActions={reportActions}
676676
/>

src/pages/inbox/ReportActionsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function ReportActionsList() {
5353
return <MoneyRequestReportActionsList />;
5454
}
5555

56-
return <ReportActionsView reportID={report.reportID} />;
56+
return <ReportActionsView reportID={reportIDFromRoute} />;
5757
}
5858

5959
export default ReportActionsList;

src/pages/inbox/report/ReportFooter.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function ReportFooter() {
8080
const isSystemChat = isSystemChatUtil(report);
8181
const isAdminsOnlyPostingRoom = isAdminsOnlyPostingRoomUtil(report);
8282

83-
if (!isCurrentReportLoadedFromOnyx || !report) {
83+
if (!isCurrentReportLoadedFromOnyx || !report || !reportIDFromRoute) {
8484
return null;
8585
}
8686

@@ -91,7 +91,7 @@ function ReportFooter() {
9191
return (
9292
<View style={[chatFooterStyles, isComposerFullSize && styles.chatFooterFullCompose]}>
9393
<SwipeableView onSwipeDown={Keyboard.dismiss}>
94-
<ReportActionCompose reportID={report.reportID} />
94+
<ReportActionCompose reportID={reportIDFromRoute} />
9595
</SwipeableView>
9696
</View>
9797
);
@@ -101,7 +101,7 @@ function ReportFooter() {
101101
if (isArchivedRoom) {
102102
return (
103103
<View style={[styles.chatFooter, styles.mt4, shouldUseNarrowLayout && styles.mb5]}>
104-
<ArchivedReportFooter reportID={report.reportID} />
104+
<ArchivedReportFooter reportID={reportIDFromRoute} />
105105
{!shouldUseNarrowLayout && (
106106
<View style={styles.offlineIndicatorContainer}>
107107
<OfflineIndicator containerStyles={[styles.chatItemComposeSecondaryRow]} />
@@ -115,7 +115,7 @@ function ReportFooter() {
115115
if (isAnonymousUser) {
116116
return (
117117
<View style={[styles.chatFooter, styles.mt4, shouldUseNarrowLayout && styles.mb5]}>
118-
<AnonymousReportFooter reportID={report.reportID} />
118+
<AnonymousReportFooter reportID={reportIDFromRoute} />
119119
{!shouldUseNarrowLayout && (
120120
<View style={styles.offlineIndicatorContainer}>
121121
<OfflineIndicator containerStyles={[styles.chatItemComposeSecondaryRow]} />

0 commit comments

Comments
 (0)