From 1a06e9cf93712f477761cdedab9ee574f776d821 Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Thu, 1 Jun 2023 12:34:16 +1000 Subject: [PATCH] Tweak story again --- code/lib/preview-api/template/stories/decorators.stories.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/code/lib/preview-api/template/stories/decorators.stories.ts b/code/lib/preview-api/template/stories/decorators.stories.ts index 7104627ae2a2..f3ab678116fd 100644 --- a/code/lib/preview-api/template/stories/decorators.stories.ts +++ b/code/lib/preview-api/template/stories/decorators.stories.ts @@ -60,11 +60,5 @@ export const Hooks = { updatedArgs: { condition: false }, }); await new Promise((resolve) => channel.once(STORY_ARGS_UPDATED, resolve)); - - await channel.emit(UPDATE_STORY_ARGS, { - storyId: id, - updatedArgs: { condition: true }, - }); - await new Promise((resolve) => channel.once(STORY_ARGS_UPDATED, resolve)); }, };