diff --git a/app/vue/src/client/preview/index.ts b/app/vue/src/client/preview/index.ts index f00ff833860..b3188e051a2 100644 --- a/app/vue/src/client/preview/index.ts +++ b/app/vue/src/client/preview/index.ts @@ -78,22 +78,13 @@ function decorateStory( (decorated: StoryFn, decorator) => (context: StoryContext = defaultContext) => { let story; - const decoratedStory = decorator(p => { - story = decorated( - p - ? { - ...context, - ...p, - parameters: { - ...context.parameters, - ...p.parameters, - }, - } - : context - ); - - return story; - }, context); + const decoratedStory = decorator( + ({ parameters, ...innerContext }: StoryContext = {} as StoryContext) => { + story = decorated({ ...context, ...innerContext }); + return story; + }, + context + ); if (!story) { story = decorated(context);