aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-07-01 03:35:47 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-07-01 03:35:47 -0400
commit5373b236dcb83c6d245da1e38c3caf13973b1b95 (patch)
treecb86de35577d74d44b97a99809a7a5d02ce28084 /src/new_fields/Doc.ts
parenta2e447925dd9fc9300d1c812cd202acf0de1aa95 (diff)
parent707e66f1d934e6b6185d9701a8b5138c0f15c90e (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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;
}