Bug - [Wizard] - Get current step examples breaks
Describe the problem
When clicking on Step 4 the get current step example breaks and throws the following error on the website
TypeError: Cannot read properties of undefined (reading 'status')
How do you reproduce the problem?
Go to https://www.patternfly.org/components/wizard/#get-current-step, click on Step 4 in the example
Screenshots
https://github.com/user-attachments/assets/29913289-6612-4f6c-84a6-89fa79c98d0d
https://github.com/patternfly/patternfly-react/blob/dace189c848d429507fd9428d8f78397ce3cff6f/packages/react-core/src/components/Wizard/examples/WizardGetCurrentStep.tsx#L71-L82
Since Substep 5 is hidden, therefore currentStep = undefined when we click on Step 4 and it throws error.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
@thatblindgeye could you remove the stale tag.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.