Open izarutskaya opened 1 day ago
Triggered auto assignment to @garrettmknight (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.
Job added to Upwork: https://www.upwork.com/jobs/~021859625825867558770
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (External
)
State filed is not auto populated.
The transaction and transactionDraft are getting from useOnyx
. The data can be not available at the first render in IOURequestStepConfirmation
It leads transaction
prop is undefined
at the first time IOURequestStepConfirmation
is rendered
https://github.com/Expensify/App/blob/e9e18573960d492a29b2563237024f0dc3c37f85/src/pages/iou/request/step/IOURequestStepConfirmation.tsx#L642
And this useEffect
call setMoneyRequestTag
with transactionID
is -1
here
https://github.com/Expensify/App/blob/e9e18573960d492a29b2563237024f0dc3c37f85/src/components/MoneyRequestConfirmationList.tsx#L696-L697
We have some options to resolve this bug
transactionID
prop in MoneyRequestConfirmationList
and pass transactionID={transactionID}
from IOURequestStepConfirmation
to MoneyRequestConfirmationList
and remove this line. We used transactionID
from route param in IOURequestStepConfirmation
so I think it makes sense if we also use this in MoneyRequestConfirmationList
withFullTransactionOrNotFound
to the component. And we can pass this to MoneyRequestConfirmationList
through IOURequestStepConfirmation
Then we can return early in this useEffect if isLoadingTransactionValue
is true
and run this again after isLoadingTransactionValue
is changed to false
https://github.com/Expensify/App/blob/e9e18573960d492a29b2563237024f0dc3c37f85/src/components/MoneyRequestConfirmationList.tsx#L696-L697
We should do the same for the auto-populated category
I'm not sure I see the bug here. Why must the state be auto populated? is this coming from a regression test? cc @garrettmknight
@s77rt If you reload the confirmation page, you can see it's auto-populated. It should be populated if the tag is required and the enabledTags
has only one
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.65-1 Reproducible in staging?: Y Reproducible in production?: Y Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team
Action Performed:
Pre-condition: upload dependent tags in old dot as admin
Dependent.-.Multi.Level.tags.NEW.1.csv
Expected Result:
State field must be auto populated.
Actual Result:
State filed is not auto populated.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/user-attachments/assets/914046c6-8bc8-4fb5-8091-7e45b133c5e9
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @s77rt