diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-02-25 02:53:23 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-02-25 02:53:23 -0500 |
commit | 9399d2a44261ffce3f33cf1ea2dac032a8d3fdc8 (patch) | |
tree | 83da346fc52e43d9ccb125ccec2f087f6f782afc /src/client/util/RichTextSchema.tsx | |
parent | 05399b3916df7311d07e7c375f90261e9c8ead80 (diff) |
improved text templates to work better with captions
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index ae3f4e731..626d9d75d 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -807,7 +807,7 @@ export class DashDocView { if (finalLayout !== dashDoc && finalKey) { const finalLayoutField = finalLayout[finalKey]; if (finalLayoutField instanceof ObjectField) { - finalLayout._textTemplate = ComputedField.MakeFunction(`copyField(this.${finalKey})`, { this: Doc.name }); + finalLayout[finalKey + "-textTemplate"] = ComputedField.MakeFunction(`copyField(this.${finalKey})`, { this: Doc.name }); } } this._reactionDisposer?.(); |