diff options
author | Stanley Yip <33562077+yipstanley@users.noreply.github.com> | 2019-11-23 18:02:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-23 18:02:38 -0500 |
commit | 548ef34592eb83fac52d941e67ecd97032dfad09 (patch) | |
tree | ea50bb7602d1d6302fb5cd0ab66b2cd0efc596ad /src/client/views/MainView.tsx | |
parent | 3b37cc31bb09b11238868c34a38a8e99f508479f (diff) | |
parent | 494deb74c82443ef828cad4de57d0236ea72a0fa (diff) |
Merge pull request #315 from browngraphicslab/pen
Improvements to Interaction
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 162d0c08a..e6dd2fcad 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -468,7 +468,7 @@ export class MainView extends React.Component { return new Transform(-translateX, -translateY, 1 / scale); } @computed get docButtons() { - if (CurrentUserUtils.UserDocument.expandingButtons instanceof Doc) { + if (CurrentUserUtils.UserDocument?.expandingButtons instanceof Doc) { return <div className="mainView-docButtons" ref={this._docBtnRef} style={{ left: (this._flyoutTranslate ? this.flyoutWidth : 0) + 20, height: !CurrentUserUtils.UserDocument.expandingButtons.isExpanded ? "42px" : undefined }} > <MainViewNotifs /> |