diff options
author | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2019-09-29 19:04:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-29 19:04:29 -0400 |
commit | 89fd714207dbd965dc4b566202ec85bbd7998adf (patch) | |
tree | 4b6279f1fe0157eb79fabd000a55754c33253506 /src/client/views/OverlayView.tsx | |
parent | c40480ec1a2da84b4223b0605bea2fe19df1104c (diff) | |
parent | 5bd6158a1f839d19f8965bff97a908c89271437d (diff) |
Merge pull request #289 from browngraphicslab/googlephotos_sharing_master
Googlephotos sharing master
Diffstat (limited to 'src/client/views/OverlayView.tsx')
-rw-r--r-- | src/client/views/OverlayView.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/OverlayView.tsx b/src/client/views/OverlayView.tsx index 45e0a3562..bb6dd5076 100644 --- a/src/client/views/OverlayView.tsx +++ b/src/client/views/OverlayView.tsx @@ -141,6 +141,9 @@ export class OverlayView extends React.Component { } @computed get overlayDocs() { + if (!CurrentUserUtils.UserDocument) { + return (null); + } return CurrentUserUtils.UserDocument.overlays instanceof Doc && DocListCast(CurrentUserUtils.UserDocument.overlays.data).map(d => { let offsetx = 0, offsety = 0; let onPointerMove = action((e: PointerEvent) => { |