aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-05-10 21:28:06 -0400
committerbobzel <zzzman@gmail.com>2025-05-10 21:28:06 -0400
commit0c3f86d57225a2991920adef3a337bc13e408ac0 (patch)
tree0a6de0a7a97ea40fc53ca0ca3b32511b37cbdaf7
parentb1bb206c73a0fbc4fb439cedd212565f7f85f4f8 (diff)
fixed naming of image template fieldKey for images.
-rw-r--r--src/client/views/collections/CollectionSubView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index bdec694e8..01a8da313 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -569,8 +569,9 @@ export function CollectionSubView<X>() {
if (d && d?.type === DocumentType.IMG) {
const imgTemplate = DocCast(Doc.UserDoc().defaultImageLayout);
if (imgTemplate) {
- d.layout_fieldKey = 'layout_shower';
- d.layout_shower = imgTemplate;
+ const templateFieldKey = StrCast(imgTemplate.title);
+ d.layout_fieldKey = templateFieldKey;
+ d[templateFieldKey] = imgTemplate;
}
}
});