diff options
author | bobzel <zzzman@gmail.com> | 2024-10-15 13:25:47 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-10-15 13:25:47 -0400 |
commit | 87d2d1d0305683a07166e44cfbcabfc94ff2069b (patch) | |
tree | 12d529d92d378870f8e1a66c534680fa0e28f3aa /src/fields/Doc.ts | |
parent | 63d1731bb675b71c20c0e460cf50ef9d674a6c08 (diff) | |
parent | 29b83f023442c313ca5cf95f70f6430f101060e6 (diff) |
Merge branch 'master' into alyssa-starter
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 45dfe233f..6ec195910 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1003,7 +1003,7 @@ export namespace Doc { } else if (field instanceof ObjectField) { const docAtKey = doc[key]; copy[key] = - docAtKey instanceof Doc && key.includes('layout[') + docAtKey instanceof Doc && (key.includes('layout[') || docAtKey.cloneOnCopy) ? new ProxyField(Doc.MakeCopy(docAtKey)) // copy the expanded render template : ObjectField.MakeCopy(field); } else if (field instanceof Promise) { |