aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-24 20:13:43 -0400
committerbobzel <zzzman@gmail.com>2025-03-24 20:13:43 -0400
commit70898430dc45ec3422ab2e05fc46054ba56a1909 (patch)
treefdd949846e93f93f3342064f1302a3f427e20495 /src/client/views/collections/CollectionSubView.tsx
parentc1a474fd2cf633fa204f1bb6dce2539f4b172d6c (diff)
fixed iconifying collections to show image icon. fixed shortcut for using cached template. fixed onClick prop type
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index a43cf0755..7d487fed8 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -109,8 +109,8 @@ export function CollectionSubView<X>() {
get dataDoc() {
return this._props.TemplateDataDocument instanceof Doc && this.layoutDoc.isTemplateForField //
- ? this._props.TemplateDataDocument[DocData]
- : this.layoutDoc.resolvedDataDoc
+ ? Doc.GetProto(this._props.TemplateDataDocument)
+ : this.Document.resolvedDataDoc
? this._props.Document
: this.Document[DocData]; // if the layout document has a resolvedDataDoc, then we don't want to get its parent which would be the unexpanded template
}