Skip to content
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

Reset the list of relevant steps each time so it is properly initialized #149

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

forevermatt
Copy link
Contributor

@forevermatt forevermatt commented Mar 28, 2024

Fixed

  • Reset the list of relevant steps each time so it is properly initialized

Without this, going to a step, hitting the browser's Back button, then going to another step (e.g. change password, back, change password recovery) gave this error:
Cannot read properties of undefined (reading 'id') on Profile UI

It seemed to be because currentStep was undefined because the current URL path didn't match any of the "relevant" steps (since they hadn't been updated). See ProfileWizard.vue:

  <v-stepper v-if="currentStep.id" ...

NOTE: Hiding whitespace helps this diff.

IDP-947

Without this, going to a step, hitting the browser's Back button, then
going to another step (e.g. change password, back, change password
recovery) gave this error:
`Cannot read properties of undefined (reading 'id') on Profile UI`

It seemed to be because currentStep was undefined because the current
URL path didn't match any of the "relevant" steps (since they hadn't
been updated).
@forevermatt forevermatt requested a review from a team March 28, 2024 18:28
@forevermatt forevermatt merged commit daeb593 into develop Mar 28, 2024
1 check passed
@forevermatt forevermatt deleted the feature/reset-wizard-steps-each-time branch March 28, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants