From 7b8bc510b944ae7aa5e7f8fe4af47b1d726595e5 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 22 Oct 2021 21:49:07 +0800 Subject: [PATCH] Core: Fix optional global features in PreviewWeb --- lib/preview-web/src/PreviewWeb.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/preview-web/src/PreviewWeb.tsx b/lib/preview-web/src/PreviewWeb.tsx index 807d30f0a63..6aba2d7c3e8 100644 --- a/lib/preview-web/src/PreviewWeb.tsx +++ b/lib/preview-web/src/PreviewWeb.tsx @@ -393,7 +393,7 @@ export class PreviewWeb { const fullDocsContext = { ...docsContext, // Put all the storyContext fields onto the docs context for back-compat - ...(!FEATURES.breakingChangesV7 && this.storyStore.getStoryContext(story)), + ...(!FEATURES?.breakingChangesV7 && this.storyStore.getStoryContext(story)), }; (await import('./renderDocs')).renderDocs(story, fullDocsContext, element, () =>