diff options
author | bobzel <zzzman@gmail.com> | 2023-12-29 17:01:40 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-12-29 17:01:40 -0500 |
commit | 9b9f54a43793ca6ffb26c56f962d11ba8325abd2 (patch) | |
tree | 026063b95da59556eb0a416b5f6fafd2ebccd737 /src/client/views/MainView.tsx | |
parent | a567eb1b6469db202d41d4d54f2c96137e49ea9c (diff) |
cleaned up imports, mobx observable initialization and some compile errors.
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 094bd2adb..35ffab337 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -118,7 +118,7 @@ export class MainView extends ObservableReactComponent<{}> { @computed private get userDoc() { return Doc.UserDoc(); } - @observable mainDoc: Opt<Doc>; + @observable mainDoc: Opt<Doc> = undefined; @computed private get mainContainer() { if (window.location.pathname.startsWith('/doc/') && Doc.CurrentUserEmail === 'guest') { DocServer.GetRefField(window.location.pathname.substring('/doc/'.length)).then(main => runInAction(() => (this.mainDoc = main as Doc))); |