From e2d34eac363e13d981f52690e0b1e750d674fa64 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Tue, 6 Jul 2021 15:24:30 +0300 Subject: [PATCH] style(addons): remove null check --- addons/docs/src/frameworks/web-components/sourceDecorator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/docs/src/frameworks/web-components/sourceDecorator.ts b/addons/docs/src/frameworks/web-components/sourceDecorator.ts index f21d10e76141..0b12575db976 100644 --- a/addons/docs/src/frameworks/web-components/sourceDecorator.ts +++ b/addons/docs/src/frameworks/web-components/sourceDecorator.ts @@ -30,7 +30,7 @@ export function sourceDecorator(storyFn: StoryFn, context: StoryContext) { const container = window.document.createElement('div'); render(story, container); const source = applyTransformSource(container.innerHTML.replace(//g, ''), context); - if (source) addons.getChannel().emit(SNIPPET_RENDERED, context?.id, source); + if (source) addons.getChannel().emit(SNIPPET_RENDERED, context.id, source); } return story;