diff options
author | bob <bcz@cs.brown.edu> | 2020-01-28 18:32:51 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-01-28 18:32:51 -0500 |
commit | 7f27720aa9b3dd691b95635ea8b345a5a14a417f (patch) | |
tree | 9f500f9db5e4d5777240340910b7f1f813e52daf /src/new_fields/Doc.ts | |
parent | 0361c04360362c31e4bdd5d27b52707b4e288662 (diff) |
fixes for texttemplates that get updated.
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index ca3aa0167..16678981d 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -612,7 +612,7 @@ export namespace Doc { (Doc.GetProto(templateField)[metadataFieldKey] = ObjectField.MakeCopy(templateField.data)); } if (templateField.data instanceof RichTextField && templateField.data.Data) { - templateField._textTemplate = ObjectField.MakeCopy(templateField.data); + templateField._textTemplate = ComputedField.MakeFunction(`copyField(this.${metadataFieldKey})`, { this: Doc.name }); } // get the layout string that the template uses to specify its layout |