Remove unnecessary default value#23206
Conversation
|
@0xmiroslav 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/VideosWebMobile Web - SafariDesktopiOSAndroid |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Remove unnecessary default value (cherry picked from commit 314940a)
| * @returns {Object} | ||
| */ | ||
| function getParentReportAction(report, allReportActionsParam = {}) { | ||
| function getParentReportAction(report, allReportActionsParam) { |
There was a problem hiding this comment.
This param is optional, so it'd be better to do allReportActionsParam = undefined, like we do in a few other places, e.g.
App/.github/libs/ActionUtils.js
Line 28 in 450573e
There was a problem hiding this comment.
Ahh good point
There was a problem hiding this comment.
I thought about that, but then I thought it would be equivalent, is it not?
There was a problem hiding this comment.
It is, it's just more explicit.
|
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 1.3.43-2 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.43-7 🚀
|
|
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 1.3.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|


Explanation: https://github.com/Expensify/App/pull/21406/files#r1268723347
Details
Fixed Issues
$ #23202
$ #23195
PROPOSAL:
Tests
Should be like this:
Screen.Recording.2023-07-19.at.11.36.05.AM.mov
Offline tests
QA Steps
Should be like this:
Screen.Recording.2023-07-19.at.11.36.05.AM.mov
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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android