aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-06-30 16:04:52 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-06-30 16:04:52 -0400
commit13fcbc4c500fec36e69cac4fc3c0ca6822322809 (patch)
treec12447b98dd0511b43ee3f60222fcede4d310816 /src/new_fields/Doc.ts
parent9dd5db438c80da77b6d791787263425c0d378933 (diff)
Fixed errors and linter warnings
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index e76e94d63..734a90731 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -293,11 +293,12 @@ export namespace Doc {
if (expandedTemplateLayout instanceof Doc) {
return expandedTemplateLayout;
}
- if (expandedTemplateLayout === undefined)
+ if (expandedTemplateLayout === undefined) {
setTimeout(() => {
templateLayoutDoc["_expanded_" + dataDoc[Id]] = Doc.MakeDelegate(templateLayoutDoc);
(templateLayoutDoc["_expanded_" + dataDoc[Id]] as Doc).title = templateLayoutDoc.title + " applied to " + dataDoc.title;
}, 0);
+ }
return templateLayoutDoc;
}