patternfly-react icon indicating copy to clipboard operation
patternfly-react copied to clipboard

Bug - [Wizard] - Get current step examples breaks

Open Mash707 opened this issue 10 months ago • 3 comments

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

Mash707 avatar Mar 12 '25 21:03 Mash707

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.

Mash707 avatar Mar 14 '25 21:03 Mash707

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar May 23 '25 11:05 github-actions[bot]

@thatblindgeye could you remove the stale tag.

Mash707 avatar May 28 '25 22:05 Mash707

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jul 29 '25 11:07 github-actions[bot]