Skip to content

Commit e078f56

Browse files
author
Eric Olkowski
committed
Removed conditional for rendering WizardBody
1 parent afa16fa commit e078f56

File tree

2 files changed

+45
-11254
lines changed

2 files changed

+45
-11254
lines changed

packages/react-core/src/components/Wizard/WizardToggle.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ export const WizardToggle = ({
7373

7474
return (
7575
<React.Fragment key={step.id}>
76-
{activeStep?.id === step.id &&
77-
(body || body === undefined ? <WizardBody {...body}>{children}</WizardBody> : children)}
76+
{activeStep?.id === step.id && <WizardBody {...body}>{children}</WizardBody>}
7877

7978
<div key={step.id} style={{ display: 'none' }}>
8079
<WizardStep {...propsWithoutChildren} />

0 commit comments

Comments
 (0)