diff options
author | bob <bcz@cs.brown.edu> | 2019-10-21 16:16:59 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-10-21 16:16:59 -0400 |
commit | 8efea66fd5723becf36dd6e3b2a95435d8528748 (patch) | |
tree | 45854fad05fec318f3c2cc05ff385374f5447ecc /src/new_fields/Doc.ts | |
parent | 4d02c9b581a22da777232124f2b1a96f8e342285 (diff) |
got rid of fieldExt from layoutstring. set directly by annotated fields
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 f60a2e720..c6f654c33 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -468,7 +468,7 @@ export namespace Doc { export function fieldExtensionDoc(doc: Doc, fieldKey: string) { let extension = doc[fieldKey + "_ext"] as Doc; (extension === undefined) && setTimeout(() => CreateDocumentExtensionForField(doc, fieldKey), 0); - return extension ? extension : doc; + return extension ? extension : undefined; } export function CreateDocumentExtensionForField(doc: Doc, fieldKey: string) { |