New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LPS-127312 [Bug] Clear editingExperience state on modal close #755
Conversation
CI is automatically triggering the following test suites:
|
✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutesClick here for more details.Base Branch:Branch Name: master Sender Branch:Branch Name: LPS-127312 1 Successful Jobs:For more details click here. |
Jenkins Build:test-portal-source-format#4242 |
Jenkins Build:test-portal-acceptance-pullrequest(master)#4195 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ci:forward
ci:forward |
CI is automatically triggering the following test suites:
The pull request will automatically be forwarded to the user
|
Skipping previously passed test suites: |
All required test suite(s) passed. |
Pull request has been successfully forwarded to brianchandotcom#98458 |
Description
When we create an experience, we stored a state called
editingExperience
in case the data entered by the user is wrong, keep the state and display an error. But if the user clicks onX
orCancel
button to dismiss the modal, the state remains there and if you want to create an experience, it will trigger an action action of the previous experience (there is an experienceId in the state).Solution
When creating or updating an experience successfully,
then()
clause is going to callonModalClose
and the modal state will be false (close) and theeditingExperience
state will be clear. Also, if the user clicks onCancel
,X
or outside the modal, it will be triggeronModalClose
too, so the state will be also clear.Screenshot
LPS-127312.bug-fixed.mov