diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-10-18 17:06:41 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-10-18 17:06:41 -0400 |
commit | 1f3576a69a6a0396d07e965c700bb7d69d77a0a3 (patch) | |
tree | f8dde35c9f36d67a0963ad9d6733009cbb15ba25 /src/client/views/collections/CollectionStackingView.tsx | |
parent | d18ed8aa5a06efff1d7a3db1c2c8240dfa3c393c (diff) |
fixed up creator buttons - factored out convert to buttons code into a dropConverter script. fixed issues with template loading for images.
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-rw-r--r-- | src/client/views/collections/CollectionStackingView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index e54374ad7..f9f040c6b 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -65,7 +65,7 @@ export class CollectionStackingView extends CollectionSubView(doc => doc) { let rowSpan = Math.ceil((height() + this.gridGap) / this.gridGap); let style = this.isStackingView ? { width: width(), margin: "auto", marginTop: i === 0 ? 0 : this.gridGap, height: height() } : { gridRowEnd: `span ${rowSpan}` }; return <div className={`collectionStackingView-${this.isStackingView ? "columnDoc" : "masonryDoc"}`} key={d[Id]} ref={dref} style={style} > - {this.getDisplayDoc(pair.layout as Doc, pair.data, dxf, width)} + {pair.layout instanceof Doc && this.getDisplayDoc(pair.layout, pair.data, dxf, width)} </div>; }); } |