diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-08 19:53:18 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-08 19:53:18 -0400 |
| commit | 2310d41e6b47448e6b9734f0d42205a114d1053e (patch) | |
| tree | 21cb328e07cffed59791c99f5782cba31146f10e /src/client/views/collections/CollectionCarouselView.tsx | |
| parent | 483a4d35ba2c522b889c7bd9b839a0af131ec0bb (diff) | |
incremental improvements to template layouts of images-- still struggling with nativeWidth/width/etc
Diffstat (limited to 'src/client/views/collections/CollectionCarouselView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionCarouselView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionCarouselView.tsx b/src/client/views/collections/CollectionCarouselView.tsx index 034d006f2..f93993e2a 100644 --- a/src/client/views/collections/CollectionCarouselView.tsx +++ b/src/client/views/collections/CollectionCarouselView.tsx @@ -46,7 +46,7 @@ export class CollectionCarouselView extends CollectionSubView(CarouselDocument) @computed get content() { const index = NumCast(this.layoutDoc._itemIndex); const layoutTemp = this.props.DataDoc ? true : undefined; - const curDoc = this.childLayoutPairs?.[index] || (layoutTemp ? { layout: this.rootDoc, data: this.rootDoc } : undefined); + const curDoc = this.childLayoutPairs?.[index]; return !(curDoc?.layout instanceof Doc) ? (null) : <> <div className="collectionCarouselView-image" key="image"> |
