Skip to content

Commit e58ee51

Browse files
authored
Merge pull request #319 from storybookjs/jeppe/fix-svelte-rawCode-missing
Fix reading `rawCode` from undefined `__svelteCsf`
2 parents 00a80db + 4e1a667 commit e58ee51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/emit-code.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const emitCode = (params: Params) => {
4747
const skipSourceRender = (context: Params['storyContext']) => {
4848
const sourceParams = context?.parameters.docs?.source;
4949
const isArgsStory = context?.parameters.__isArgsStory;
50-
const rawCode = context?.parameters.__svelteCsf.rawCode;
50+
const rawCode = context?.parameters.__svelteCsf?.rawCode;
5151

5252
if (!rawCode) {
5353
return true;

0 commit comments

Comments
 (0)