diff --git a/packages/frontend/.storybook/generate.tsx b/packages/frontend/.storybook/generate.tsx index f501b02ab..a6e2bf735 100644 --- a/packages/frontend/.storybook/generate.tsx +++ b/packages/frontend/.storybook/generate.tsx @@ -75,7 +75,7 @@ function h( props: Omit ): T { const type = component.replace(/(?:^|-)([a-z])/g, (_, c) => c.toUpperCase()); - return Object.assign(props, { type }) as T; + return Object.assign(props || {}, { type }) as T; } declare global {