Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 6975eb5

Browse files
committed
fix(plugins/plugin-client-common): wizard steps with no code blocks have blank area
For the empty MiniProgressStepper
1 parent a379c1d commit 6975eb5

File tree

1 file changed

+1
-1
lines changed
  • plugins/plugin-client-common/src/components/Content/Markdown/components/Wizard

1 file changed

+1
-1
lines changed

plugins/plugin-client-common/src/components/Content/Markdown/components/Wizard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default class Wizard extends React.PureComponent<Props, State> {
143143

144144
private wizardCodeBlockSteps(stepIdx: number) {
145145
const containedCodeBlocks = this.state.codeBlocksPerStep[stepIdx]
146-
return containedCodeBlocks && <MiniProgressStepper steps={containedCodeBlocks} />
146+
return containedCodeBlocks && containedCodeBlocks.length > 0 && <MiniProgressStepper steps={containedCodeBlocks} />
147147
}
148148

149149
private wizardStepDescription(stepIdx: number, description: string) {

0 commit comments

Comments
 (0)