fix: go back when deleting Netsuite custom list#65670
fix: go back when deleting Netsuite custom list#65670thienlnam merged 2 commits intoExpensify:mainfrom
Conversation
|
@mananjadhav 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] |
| `workspaces/${policyID}/accounting/netsuite/import/custom/${importCustomField as string}` as const, | ||
| getRoute: (policyID: string | undefined, importCustomField: ValueOf<typeof CONST.NETSUITE_CONFIG.IMPORT_CUSTOM_FIELDS>) => { | ||
| if (!policyID) { | ||
| Log.warn('Invalid policyID is used to build the POLICY_ACCOUNTING_NETSUITE_IMPORT_CUSTOM_FIELD_MAPPING route'); |
There was a problem hiding this comment.
Any reason we're changing this to string|undefined and not handling the check when the method is called.
There was a problem hiding this comment.
This is a pretty common convention in ROUTES so I just followed it.
| }, | ||
| }: NetSuiteImportCustomFieldViewProps) { | ||
| const policyID = policy?.id ?? '-1'; | ||
| const policyID = policy?.id; |
There was a problem hiding this comment.
Does this have to be fixed on any other page?
There was a problem hiding this comment.
This is to fix the lint-changed check, we only need to fix the files included in the PR.
mananjadhav
left a comment
There was a problem hiding this comment.
Minor comments. But I just want us to check if this needs to be fixed at other places.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-custom-list-back.movAndroid: mWeb Chromemweb-chrome-custom-list-back.moviOS: HybridAppios-custom-list-back.moviOS: mWeb Safarimweb-safari-custom-list-back.movMacOS: Chrome / Safariweb-custom-list-back.movMacOS: Desktopdesktop-custom-list-back.mov |
mananjadhav
left a comment
There was a problem hiding this comment.
Android screencast from @daledah is missing, but I've tested it on all platforms.
|
✋ 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/thienlnam in version: 9.1.81-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.1.81-7 🚀
|
Explanation of Change
Fixed Issues
$ #65407
PROPOSAL: #65407 (comment)
Tests
Precondition: Workspace is connected to NetSuite.
Offline tests
QA Steps
Precondition: Workspace is connected to NetSuite.
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))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: mWeb Chrome
Screen.Recording.2025-07-09.at.01.00.00.mov
iOS: Native
Screen.Recording.2025-07-09.at.01.03.10.mov
iOS: mWeb Safari
Screen.Recording.2025-07-09.at.01.04.54.mov
MacOS: Chrome / Safari
Screen.Recording.2025-07-09.at.01.06.28.mov
MacOS: Desktop
Screen.Recording.2025-07-09.at.01.08.14.mov