Skip to content

Commit

Permalink
Update packages/example-app-base/src/components/ExampleCard/ExampleCa…
Browse files Browse the repository at this point in the history
…rd.tsx

Co-Authored-By: Elizabeth Craig <[email protected]>
  • Loading branch information
nishikaza and ecraig12345 authored Jul 30, 2019
1 parent a0a0db6 commit 72a4d96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class ExampleCardBase extends React.Component<IExampleCardProps, IExample
this.setState({ themeIndex: value.key as number });
};
private _onToggleCodeClick = () => {
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'));
}
Expand Down

0 comments on commit 72a4d96

Please sign in to comment.