-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix crash for missing report #46867
Fix crash for missing report #46867
Conversation
@rayane-djouah Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosBefore:Screen.Recording.2024-08-06.at.12.30.03.PM.movAfter:Screen.Recording.2024-08-06.at.12.30.46.PM.mov |
@luacmartins - I think we should update App/src/components/Search/index.tsx Line 219 in 412fc60
to be true when App/src/components/Search/index.tsx Line 266 in 412fc60
Otherwise, the search page can show an empty view instead of the empty state component if Screen.Recording.2024-08-06.at.1.09.20.PM.mov |
Do you know which flow is returning an empty array? The results should always be an object |
Line 229 in 412fc60
|
App/src/components/Search/index.tsx Line 219 in 412fc60
Lines 321 to 324 in 412fc60
|
Ah I see, that happens after we get the |
Updated! |
Fixed 🚀 Screen.Recording.2024-08-07.at.9.21.11.AM.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 and tests well
@carlosmiceli Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
The reviewer checklist is complete |
Sorry, had to resolve conflicts. Please review again! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/carlosmiceli in version: 9.0.18-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.18-10 🚀
|
Details
Fixes a crash when report is missing. We're still investigating why the report is missing, but in the meantime we'll fix the crash
Fixed Issues
$ #46516
Tests
Shared
search pageOffline tests
N/A
QA Steps
N/A
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop