-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CP Staging] fix: Blank page after returning to IOU report from thread and deleting the other request #40157
Conversation
…g the other request
Friendly bump @rushatgabhane |
ETA 2 hours |
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeScreen.Recording.2024-04-13.at.03.02.48.moviOS: NativeScreen.Recording.2024-04-13.at.02.53.34.moviOS: mWeb SafariScreen.Recording.2024-04-13.at.02.56.29.movMacOS: Chrome / SafariScreen.Recording.2024-04-13.at.02.52.05.movMacOS: DesktopScreen.Recording.2024-04-13.at.02.58.56.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
fix: Blank page after returning to IOU report from thread and deleting the other request (cherry picked from commit db9e01c)
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.4.62-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.62-17 🚀
|
@@ -333,6 +333,14 @@ function ReportScreen({ | |||
} | |||
|
|||
const transactionThreadReportID = useMemo(() => ReportActionsUtils.getOneTransactionThreadReportID(report.reportID, reportActions ?? []), [report.reportID, reportActions]); | |||
|
|||
useEffect(() => { | |||
if (!transactionThreadReportID || !route.params.reportActionID) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to add condition to check if the current report is one transaction thread too. Otherwise it will cause #44588. More details in this comment.
Details
Fixed Issues
$ #40087
PROPOSAL: #40087 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
web-resize.mp4
Android: mWeb Chrome
web-resize.mp4
iOS: Native
web-resize.mp4
iOS: mWeb Safari
web-resize.mp4
MacOS: Chrome / Safari
web-resize.mp4
MacOS: Desktop
web-resize.mp4