diff options
author | bobzel <zzzman@gmail.com> | 2025-05-10 21:28:06 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-05-10 21:28:06 -0400 |
commit | 0c3f86d57225a2991920adef3a337bc13e408ac0 (patch) | |
tree | 0a6de0a7a97ea40fc53ca0ca3b32511b37cbdaf7 /src | |
parent | b1bb206c73a0fbc4fb439cedd212565f7f85f4f8 (diff) |
fixed naming of image template fieldKey for images.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 5 |
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; } } }); |