We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bca7250 commit af6640aCopy full SHA for af6640a
storyhelpers/render-slots.ts
@@ -34,7 +34,9 @@ function renderSlots(param: TemplateResult[] | Args) {
34
// Join slots with consistent formatting; no extra line breaks between them
35
const spacing = ' ';
36
37
- const stringSlots = validSlots.map(slot => slot.strings[0]);
+ const stringSlots = validSlots.map(slot =>
38
+ typeof slot === 'string' ? slot : slot.strings?.[0] ?? '',
39
+ );
40
const stringSlotsJoined = stringSlots.join('\n');
41
const stringSlotsJoinedWithSpacing = stringSlotsJoined
42
.split('\n')
0 commit comments