Skip to content

Commit

Permalink
Removed conditional for rendering WizardBody
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblindgeye committed Jul 3, 2024
1 parent afa16fa commit e078f56
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 11,254 deletions.
3 changes: 1 addition & 2 deletions packages/react-core/src/components/Wizard/WizardToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ export const WizardToggle = ({

return (
<React.Fragment key={step.id}>
{activeStep?.id === step.id &&
(body || body === undefined ? <WizardBody {...body}>{children}</WizardBody> : children)}
{activeStep?.id === step.id && <WizardBody {...body}>{children}</WizardBody>}

<div key={step.id} style={{ display: 'none' }}>
<WizardStep {...propsWithoutChildren} />
Expand Down
Loading

0 comments on commit e078f56

Please sign in to comment.