Skip to content

Commit 2b63af4

Browse files
author
Eric Olkowski
committed
Removed conditional for rendering WizardBody
1 parent 3d92701 commit 2b63af4

File tree

2 files changed

+1
-758
lines changed

2 files changed

+1
-758
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)