fix:74387: Guard against missing keys in currentFeatureStates to avoid incorrect state updates#75136
Merged
mollfpr merged 2 commits intoExpensify:mainfrom Nov 20, 2025
Merged
Conversation
…d incorrect state updates
|
@shubham1206agra 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] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
joekaufmanexpensify
previously approved these changes
Nov 14, 2025
Contributor
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from a product perspective 👍
Contributor
|
@Eskalifer1 Can you merge main please? |
Contributor
Reviewer Checklist
Screenshots/VideosScreen.Recording.2025-11-19.at.9.57.43.PM.mov |
Contributor
Author
|
Done! |
shubham1206agra
approved these changes
Nov 20, 2025
mollfpr
approved these changes
Nov 20, 2025
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Contributor
|
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.2.62-0 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.62-5 🚀
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
This PR adds a check in
WorkspaceInitialPageto see if the key we take in the loop frompolicy?.pendingFieldsis present in the elements displayed in the sideBar. This is necessary so that if one action results in two updates inpolicy?.pendingFields, where one value is in the sideBar and the other is not, the animation of the appearance in the sideBar works correctly for the value that is in it.Fixed Issues
$#74387
PROPOSAL:#74387 (comment)
Tests
Offline tests
Precondition: Have control policy
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
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
74387-android-native.mov
Android: mWeb Chrome
74387-android-web.mov
iOS: Native
74387-ios-native.mov
iOS: mWeb Safari
74387-ios-web.mov
MacOS: Chrome / Safari
74387-web.mov
MacOS: Desktop
74387-desktop.mov