diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-05-05 00:54:44 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-05-05 00:54:44 -0400 |
commit | 7d35ba0df5be5f3c2cd95c0f0d148c0c9c04de7a (patch) | |
tree | 07645c060a07d8ff296cfc36e9a0804291dd7783 /src/client/views/Main.tsx | |
parent | af2e5dbf49e0e82d76f267c681761968d4bafc62 (diff) |
fix duplicate goldenlayout caused by presentation view
Diffstat (limited to 'src/client/views/Main.tsx')
-rw-r--r-- | src/client/views/Main.tsx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx index c3b48d20f..1a9b1cf3c 100644 --- a/src/client/views/Main.tsx +++ b/src/client/views/Main.tsx @@ -51,9 +51,6 @@ export class Main extends React.Component { } private set mainContainer(doc: Opt<Doc>) { if (doc) { - if (!("presentationView" in doc)) { - doc.presentationView = new Doc(); - } CurrentUserUtils.UserDocument.activeWorkspace = doc; } } @@ -180,11 +177,7 @@ export class Main extends React.Component { @computed get presentationView() { - if (this.mainContainer) { - let presentation = FieldValue(Cast(this.mainContainer.presentationView, Doc)); - return presentation ? <PresentationView Document={presentation} key="presentation" /> : (null); - } - return (null); + return <PresentationView key="presentation" />; } @computed |