diff options
| author | bobzel <zzzman@gmail.com> | 2025-03-26 16:36:15 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-03-26 16:36:15 -0400 |
| commit | a3eab5f2b8eca6ff7a21ea9d043b90c953c35f03 (patch) | |
| tree | d708391fe97f8c0d17458abd51c2ee42c180e6cc /src/client/views/collections/CollectionCarouselView.tsx | |
| parent | bddf2c741860eb39499faa1969054bcf1b63245e (diff) | |
fix so that views use don't use the rootDocument, but rather the current rendering document. got rid of resolvedDataDoc -- just use rootDocument[DocData]
Diffstat (limited to 'src/client/views/collections/CollectionCarouselView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionCarouselView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionCarouselView.tsx b/src/client/views/collections/CollectionCarouselView.tsx index a7d217076..3fc56d7d9 100644 --- a/src/client/views/collections/CollectionCarouselView.tsx +++ b/src/client/views/collections/CollectionCarouselView.tsx @@ -16,6 +16,7 @@ import { FocusViewOptions } from '../nodes/FocusViewOptions'; import { FormattedTextBox } from '../nodes/formattedText/FormattedTextBox'; import './CollectionCarouselView.scss'; import { CollectionSubView, SubCollectionViewProps } from './CollectionSubView'; +import { DocData } from '../../../fields/DocSymbols'; @observer export class CollectionCarouselView extends CollectionSubView() { @@ -136,7 +137,7 @@ export class CollectionCarouselView extends CollectionSubView() { renderDepth={this._props.renderDepth + 1} LayoutTemplate={this._props.childLayoutTemplate} LayoutTemplateString={this._props.childLayoutString} - TemplateDataDocument={DocCast(Doc.Layout(doc).resolvedDataDoc)} + TemplateDataDocument={DocCast(Doc.Layout(doc).rootDocument)?.[DocData]} childFilters={this.childDocFilters} focus={this.focus} hideDecorations={BoolCast(this.layoutDoc.layout_hideDecorations)} |
