From 7fb2841a20805054c9dd9a1f810684a9f0562b86 Mon Sep 17 00:00:00 2001 From: atanasster Date: Sun, 3 May 2020 09:34:20 -0400 Subject: [PATCH] fix: allow for existing args to be passed along --- integrations/storybook/src/config.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/storybook/src/config.tsx b/integrations/storybook/src/config.tsx index 386bccb08..92eda43f1 100644 --- a/integrations/storybook/src/config.tsx +++ b/integrations/storybook/src/config.tsx @@ -22,7 +22,7 @@ addDecorator( if (context.args !== undefined) { //storybook-6 beta fake args //@ts-ignore - return storyFn({ ...context, args: values }); + return storyFn({ ...context, args: { ...context.args, ...values } }); } //storybook 5 and 6 alphas //@ts-ignore