silinternational / idp-profile-ui

Identity management UI for a given IdP
MIT License
0 stars 2 forks source link

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

Closed forevermatt closed 5 months ago

forevermatt commented 5 months ago

Fixed


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