From 72a4d9632bbc65ecd6673251f7a1a1e97c7f064f Mon Sep 17 00:00:00 2001 From: Nishi Kaza Date: Tue, 30 Jul 2019 13:17:36 -0700 Subject: [PATCH] Update packages/example-app-base/src/components/ExampleCard/ExampleCard.tsx Co-Authored-By: Elizabeth Craig --- .../example-app-base/src/components/ExampleCard/ExampleCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/example-app-base/src/components/ExampleCard/ExampleCard.tsx b/packages/example-app-base/src/components/ExampleCard/ExampleCard.tsx index e9a9de7d53693..1744b40822aa3 100644 --- a/packages/example-app-base/src/components/ExampleCard/ExampleCard.tsx +++ b/packages/example-app-base/src/components/ExampleCard/ExampleCard.tsx @@ -188,7 +188,7 @@ export class ExampleCardBase extends React.Component { - if (!this.Editor && !this.EditorPreview) { + if (this.canRenderLiveEditor && !this.Editor && !this.EditorPreview) { this.Editor = React.lazy(() => import('@uifabric/tsx-editor/lib/components/Editor')); this.EditorPreview = React.lazy(() => import('@uifabric/tsx-editor/lib/components/EditorPreview')); }