Closed kbecciv closed 1 year ago
Triggered auto assignment to @dylanexpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are ✅)What is the root cause of that problem?
The issue in the code is that the Left Hand Navigation (LHN) does not reflect the report value before clicking on it. Currently, it updates the LHN after a click on the report.
This happens in SplitBillDetailsPage.js
code file
In this code file SplitBillDetailsPage
Function Given this error in UI
In Solution of this issue The code can modify as follows:
In the withReportOrNotFound
HOC (Higher Order Component), update the reportActions
prop to fetch the report actions for the given report ID before rendering the component. This will ensure that the report actions are available in the component's props when it mounts.
Update the SplitBillDetailsPage
component to handle the case where the report or report action is not found. In the case where the report or report action is not found, display an appropriate error message or fallback UI.
By making these changes, the SplitBillDetailsPage
component will receive the reportActions
prop with the necessary data before rendering. It will also handle the case where the report action is not found and display an appropriate error message or fallback UI.
Looks like something related to react-navigation
may have been mentioned in this issue discussion.
As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js
files should not be accepted.
Feel free to drop a note in #expensify-open-source with any questions.
Not reproducible in v1.3.33-3.
@jjcoffee It is still reproducible. The reports that are affected are not the ones with GBR, rather are the chats I have opened at the end of the video.
Clarifying something in channel
bumped channel for thoughts!
@dylanexpensify I think the issue is fixed on the latest build. I will check again and let you know if it is fixed or not.
reviewing today and posting next steps!
agreed, i believe this is fixed!
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
1, Click on FAB menu
Expected Result:
LHN should reflect report value before click
Actual Result:
LHN reflects report value after a click on LHN
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.31-1 Reproducible in staging?: n/a Reproducible in production?: n/a If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/cd701d08-b7f1-40fa-8eed-f611d860628b
Expensify/Expensify Issue URL: Issue reported by: @Natnael-guchima Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687456348210999
View all open jobs on GitHub