From 4521e61ae25d22ae4db2e614d37e112d0235bfca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sat, 1 Apr 2023 17:54:30 +0900 Subject: [PATCH] fix: missing case --- packages/frontend/.storybook/generate.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {