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/client/util | |
| parent | 0361c04360362c31e4bdd5d27b52707b4e288662 (diff) | |
fixes for texttemplates that get updated.
Diffstat (limited to 'src/client/util')
| -rw-r--r-- | src/client/util/DropConverter.ts | 1 | ||||
| -rw-r--r-- | src/client/util/RichTextSchema.tsx | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/client/util/DropConverter.ts b/src/client/util/DropConverter.ts index 8d92de28f..6faa21125 100644 --- a/src/client/util/DropConverter.ts +++ b/src/client/util/DropConverter.ts @@ -6,7 +6,6 @@ import { StrCast } from "../../new_fields/Types"; import { Docs } from "../documents/Documents"; import { ScriptField, ComputedField } from "../../new_fields/ScriptField"; import { RichTextField } from "../../new_fields/RichTextField"; -import { Compute } from "google-auth-library"; export function makeTemplate(doc: Doc): boolean { const layoutDoc = doc.layout instanceof Doc && doc.layout.isTemplateForField ? doc.layout : doc; diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index f667b86af..c0400bd6c 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -791,7 +791,6 @@ export class DashDocView { if (finalLayout !== dashDoc && finalKey) { const finalLayoutField = finalLayout[finalKey]; if (finalLayoutField instanceof ObjectField) { - //finalLayout._textTemplate = ObjectField.MakeCopy(finalLayoutField); finalLayout._textTemplate = ComputedField.MakeFunction(`copyField(this.${finalKey})`, { this: Doc.name }); } } |
