diff options
| author | andrewdkim <adkim414@gmail.com> | 2019-10-01 18:55:50 -0400 | 
|---|---|---|
| committer | andrewdkim <adkim414@gmail.com> | 2019-10-01 18:55:50 -0400 | 
| commit | 23619154f8688ffcb25a988158d75934c0cacbf7 (patch) | |
| tree | d7462da0f0e8b9de091263af166959872e8af0f6 /src/client/views/OverlayView.tsx | |
| parent | 45b9f489033cd323614463ca9c36f41900bf1965 (diff) | |
| parent | 69e4a936c4eb0cc2e35e4e7f3258aed1f72b8da7 (diff) | |
still unfinished
Diffstat (limited to 'src/client/views/OverlayView.tsx')
| -rw-r--r-- | src/client/views/OverlayView.tsx | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/views/OverlayView.tsx b/src/client/views/OverlayView.tsx index da4b71e5c..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) => { @@ -172,6 +175,7 @@ export class OverlayView extends React.Component {                      ChromeHeight={returnZero}                      isSelected={returnFalse}                      select={emptyFunction} +                    ruleProvider={undefined}                      layoutKey={"layout"}                      bringToFront={emptyFunction}                      addDocument={undefined} @@ -185,9 +189,10 @@ export class OverlayView extends React.Component {                      whenActiveChanged={emptyFunction}                      focus={emptyFunction}                      backgroundColor={returnEmptyString} -                    addDocTab={emptyFunction} +                    addDocTab={returnFalse}                      pinToPres={emptyFunction}                      ContainingCollectionView={undefined} +                    ContainingCollectionDoc={undefined}                      zoomToScale={emptyFunction}                      getScale={returnOne} />              </div>;  | 
