diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-06-16 23:24:30 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-06-16 23:24:30 -0400 |
commit | 3927564a9ff22af07490f0e98be3e8cbe1a4d3ab (patch) | |
tree | a2dcb28f7118136c6078b6148f54aa4a608b200b /src/fields/Doc.ts | |
parent | 4a0332994b38c8910077e6cc711e9e78c2964b67 (diff) |
changed Doc.MakeCopy() to ignore layout[ fields so that copying text documents with a layout doesn't copy their text
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 70aa2d60b..96587af44 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -670,7 +670,7 @@ export namespace Doc { copy[key] = cfield[Copy]();// ComputedField.MakeFunction(cfield.script.originalScript); } else if (field instanceof ObjectField) { copy[key] = doc[key] instanceof Doc ? - key.includes("layout[") ? Doc.MakeCopy(doc[key] as Doc, false) : doc[key] : // reference documents except copy documents that are expanded teplate fields + key.includes("layout[") ? undefined : doc[key] : // reference documents except remove documents that are expanded teplate fields ObjectField.MakeCopy(field); } else if (field instanceof Promise) { debugger; //This shouldn't happend... |