You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expense- App crash after deleting category in the list #78076
Version Number: v9.2.82-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:https://test-management.browserstack.com/projects/2219752/folder/13176818/test-cases/41237209 Email or phone of affected tester (no customers):testpayment935@gmail.com Issue reported by: Applause Internal Team Bug source: Regression TC Execution Device used: Windows 11 pro /Chrome App Component: Workspace Settings
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
Expense- App crash after deleting category in the list
What is the root cause of that problem?
The crash occurs in the requireFieldsPendingAction useMemo hook where the dependency array accesses policyCategory.pendingFields without optional chaining
Reproduced in staging v9.2.84-0 and not in prod v9.2.83-0. However, I don't reproduce this while offline and not after I reconnect either which is weird.
Activity
melvin-bot commentedon Dec 19, 2025
Triggered auto assignment to @RachCHopkins (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.melvin-bot commentedon Dec 19, 2025
Triggered auto assignment to @arosiclair (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Dec 19, 2025
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Dec 19, 2025
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
nyomanjyotisa commentedon Dec 19, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense- App crash after deleting category in the list
What is the root cause of that problem?
The crash occurs in the
requireFieldsPendingActionuseMemo hook where the dependency array accessespolicyCategory.pendingFieldswithout optional chainingApp/src/pages/workspace/categories/CategorySettingsPage.tsx
Lines 132 to 139 in 894cbc2
What changes do you think we should make in order to solve the problem?
Add optional chaining to
policyCategory.pendingFieldsin the dependency array to safely handle whenpolicyCategoryisundefinedApp/src/pages/workspace/categories/CategorySettingsPage.tsx
Line 139 in 894cbc2
What alternative solutions did you explore? (Optional)
None
arosiclair commentedon Dec 19, 2025
Reproduced in staging v9.2.84-0 and not in prod v9.2.83-0. However, I don't reproduce this while offline and not after I reconnect either which is weird.
arosiclair commentedon Dec 19, 2025
Can't reproduce in dev atm even with v9.2.84-0 checked out
arosiclair commentedon Dec 19, 2025
This is reproducible with both staging and prod APIs so not a API blocker
arosiclair commentedon Dec 19, 2025
Okay reverting #76687 fixes this. cc @ikevin127 @jayeshmangwani @JS00001
melvin-bot commentedon Dec 19, 2025
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
JS00001 commentedon Dec 19, 2025
Reverting this one
mvtglobally commentedon Dec 19, 2025
MacOS Monterey / Chrome Web v9.2.84-5
Issue Not reproduced
Screen.Recording.2025-12-19.at.21.23.57.mp4
JS00001 commentedon Dec 19, 2025
Closing, we cpd a revert, thanks!