Skip to content

Commit 3ee199d

Browse files
committed
fix null check
1 parent 9fe469e commit 3ee199d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/getStorybookMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const getStorybookMetadata = async () => {
2525
const lazyCompilation = !!main.core?.builder?.options?.lazyCompilation;
2626

2727
const frameworkName =
28-
main.framework && typeof main.framework === 'string' ? main.framework : main.framework.name;
28+
main.framework && typeof main.framework === 'string' ? main.framework : main.framework?.name;
2929

3030
const { disableTelemetry, enableCrashReports } = main.core || {};
3131

0 commit comments

Comments
 (0)