Skip to content

Commit 0279666

Browse files
authored
refactor: we shouldn't output the name into the innerContent in general (#4751)
* refactor: we shouldn't output the name into the innerContent as a default * fix: prevent an undefined
1 parent ec9f838 commit 0279666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

showcases/patternhub/scripts/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const getCodeByFramework = (
123123
)
124124
)
125125
.join('\n') + (content ?? '')
126-
: (content ?? name);
126+
: (content ?? '');
127127

128128
const slots = (children ?? example.children)?.filter((child) =>
129129
child.slot

0 commit comments

Comments
 (0)