diff options
-rw-r--r-- | src/client/views/collections/CollectionCarouselView.tsx | 3 | ||||
-rw-r--r-- | src/client/views/nodes/ComparisonBox.tsx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionCarouselView.tsx b/src/client/views/collections/CollectionCarouselView.tsx index ba7c944a0..9f59322e8 100644 --- a/src/client/views/collections/CollectionCarouselView.tsx +++ b/src/client/views/collections/CollectionCarouselView.tsx @@ -210,7 +210,7 @@ export class CollectionCarouselView extends CollectionSubView() { return !(curDoc?.layout instanceof Doc) ? null : ( <> - <div className="collectionCarouselView-image" key="image"> + <div className="collectionCarouselView-image"> <DocumentView {...this._props} NativeWidth={returnZero} @@ -218,6 +218,7 @@ export class CollectionCarouselView extends CollectionSubView() { fitWidth={undefined} setContentViewBox={undefined} childFilters={this.childDocFilters} + containerViewPath={this._props.docViewPath} onDoubleClickScript={this.onContentDoubleClick} onClickScript={this.onContentClick} isDocumentActive={this._props.childDocumentsActive?.() ? this._props.isDocumentActive : this._props.isContentActive} diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx index 58af3ad52..9e1c1b7be 100644 --- a/src/client/views/nodes/ComparisonBox.tsx +++ b/src/client/views/nodes/ComparisonBox.tsx @@ -673,7 +673,7 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent<FieldViewProps>() renderDepth={this.props.renderDepth + 1} LayoutTemplateString={layoutString} Document={layoutString ? this.Document : targetDoc} - containerViewPath={this.DocumentView?.().docViewPath} + containerViewPath={this._props.docViewPath} moveDocument={whichSlot.endsWith('1') ? this.moveDoc1 : this.moveDoc2} removeDocument={whichSlot.endsWith('1') ? this.remDoc1 : this.remDoc2} NativeWidth={this.layoutWidth} |