@@ -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