Skip to content

Commit 020cbc8

Browse files
authored
Merge pull request #1414 from lucasgarfield/bugfix-pf-wizard-nav
fix(pf4): fix bug in wizard navigation toolbar
2 parents 3b7ffcb + a94e21e commit 020cbc8

File tree

1 file changed

+2
-2
lines changed
  • packages/pf4-component-mapper/src/wizard/wizard-components

1 file changed

+2
-2
lines changed

packages/pf4-component-mapper/src/wizard/wizard-components/wizard-nav.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const WizardNavigationInternal = React.memo(
2424
<WizardNav>
2525
{navSchema
2626
.filter((field) => field.primary)
27-
.map((step, ind) => {
27+
.map((step) => {
2828
const substeps = step.substepOf && navSchema.filter((field) => field.substepOf === step.substepOf);
2929

3030
const isValid = valid && !validating;
@@ -37,7 +37,7 @@ const WizardNavigationInternal = React.memo(
3737
isDisabled={isValid ? maxStepIndex < step.index : step.index > activeStepIndex}
3838
onClick={(e) => {
3939
e.preventDefault();
40-
jumpToStep(ind, isValid);
40+
jumpToStep(step.index, isValid);
4141
}}
4242
step={step.index}
4343
type="button"

0 commit comments

Comments
 (0)