From 0c3f86d57225a2991920adef3a337bc13e408ac0 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sat, 10 May 2025 21:28:06 -0400 Subject: fixed naming of image template fieldKey for images. --- src/client/views/collections/CollectionSubView.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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() { 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; } } }); -- cgit v1.2.3-70-g09d2