From a1bd5f7bce9aa1e9cb0d1194789fc482472465bc Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Sat, 25 Nov 2023 23:02:21 -0500
Subject: changed Slide template to write to 'hero' not 'data' to avoid
 conflict with 'data' being used already for the template parts.   fixed
 freeform view to read _width/_height to get template values when present for
 panning beyond edge.  Made CollectionSubView read datafield from dataDoc
 which is where template writes go.   fixed docview dragging to use its own
 view unless multi-dragging.   turnded off user-select in overlay view which
 made repl viewer title selectable.  fixed crash on rebuilding db cause by
 myOverlay and myPublished not yet existing.

---
 src/client/views/collections/CollectionSubView.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/views/collections/CollectionSubView.tsx')

diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index 328b060c4..9626f06ca 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -67,7 +67,7 @@ export function CollectionSubView<X>(moreProps?: X) {
         // to its children which may be templates.
         // If 'annotationField' is specified, then all children exist on that field of the extension document, otherwise, they exist directly on the data document under 'fieldKey'
         @computed get dataField() {
-            return this.layoutDoc[this.props.fieldKey];
+            return this.dataDoc[this.props.fieldKey]; // this used to be 'layoutDoc', but then template fields will get ignored since the template is not a proto of the layout.  hopefully nothing depending on the previous code.
         }
 
         @computed get childLayoutPairs(): { layout: Doc; data: Doc }[] {
-- 
cgit v1.2.3-70-g09d2

