fix: remove getReportNameValuPairs() in canUserPerformWriteAction part 5#72910
Conversation
|
This PR fix regression in #72829 |
|
@DylanDylann 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] |
|
Ops........................ As I understand, It's an edge case In this case, chatReportID is "0" ===> !chatReportID will be false ==> replacing !chatReportID by !chatReport will change the behavior |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2025-10-20.at.16.35.52.movAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ 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/tgolen in version: 9.2.35-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.2.35-4 🚀
|
Explanation of Change
In #72619 We've removed use
allReportsindeleteTrackExpenseandgetNavigationUrlAfterTrackExpenseDeleteby pass chatReport from View.App/src/libs/actions/IOU.ts
Line 8379 in 26e9e00
For selfDM when delete with popover,
reportIDRef.currentis '0' leads to report undefined. We've early returned in function here leads to delete expense not work.App/src/libs/actions/IOU.ts
Line 8375 in 26e9e00
Fix: Pass both
chatReportandchatReportIDand keep the current logic check withchatReportIDFixed Issues
$#67103
PROPOSAL:
Tests
Prerequisite: Account has at least one workspace.
Prerequisite 2: Account has a Self DM.
Offline tests
QA Steps
Prerequisite: Account has at least one workspace.
Prerequisite 2: Account has a Self DM.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso 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
android_native.mov
Android: mWeb Chrome
android.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios_safari.mov
MacOS: Chrome / Safari
chorme.mov
MacOS: Desktop
desktop.mov