[CP Staging]Fix: App crashes when upload PDF#37484
Conversation
|
@getusha Please review this crash deploy blocker ASAP! Thanks! |
|
Will review it, thanks! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-29.at.9.15.07.PM.movAndroid: mWeb ChromeScreen.Recording.2024-02-29.at.9.19.07.PM.moviOS: NativeScreen.Recording.2024-02-29.at.9.04.31.PM.moviOS: mWeb SafariScreen.Recording.2024-02-29.at.9.16.42.PM.movMacOS: Chrome / SafariScreen.Recording.2024-02-29.at.9.13.12.PM.movMacOS: DesktopScreen.Recording.2024-02-29.at.9.22.51.PM.mov |
| CachedPDFPaths.add(transaction.transactionID || reportActionID, path); | ||
| const id = (transaction && transaction.transactionID) || reportActionID; | ||
| if (path && id) { | ||
| CachedPDFPaths.add(id, path); |
There was a problem hiding this comment.
@tienifr just noticed this, since we should not be storing the path on web could we only add it on native?
There was a problem hiding this comment.
CachePDFPath already has platform-dependent files (i.e. noop functions on web).
There was a problem hiding this comment.
CachePDFPath already has platform-dependent files (i.e. noop functions on web).
Forgot about that 😆
[CP Staging]Fix: App crashes when upload PDF (cherry picked from commit e4e98a2)
|
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 1.4.45-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.45-6 🚀
|
Details
This PR fixes app crashes when upload PDF due to undefined value.
Fixed Issues
$ #32232
$ #37469
PROPOSAL:
Tests
Offline tests
NA
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-02-29.at.18.28.14-compressed.mov
Android: mWeb Chrome
Screen.Recording.2024-02-29.at.18.24.22-compressed.mov
iOS: Native
Screen.Recording.2024-02-29.at.18.08.25-compressed.mov
iOS: mWeb Safari
Screen.Recording.2024-02-29.at.18.11.41-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-29.at.18.09.42-compressed.mov
MacOS: Desktop
Screen.Recording.2024-02-29.at.18.09.42-compressed.mov