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

Commit 6287e3c

Browse files
committed
fix(plugins/plugin-client-common): wizards with no title render as "undefined" in the UI
1 parent cc76957 commit 6287e3c

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/rehype-wizard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function transformer(ast) {
7878

7979
if (wizard.steps.length === 0 && !wizard.title) {
8080
wizard.title =
81-
node.properties['data-kui-title'] +
81+
(node.properties['data-kui-title'] || ' ') +
8282
(node.properties['data-kui-description'] ? ': ' + node.properties['data-kui-description'] : '')
8383

8484
// Ugh, work around nested <p>. The div comes from us, so that

0 commit comments

Comments
 (0)