aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-06-28 16:57:46 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-06-28 16:57:46 -0400
commit8ef971485492e3dc461cd93b2ae89e01b9995741 (patch)
tree0f0adfd1bb65c8073a03de239e882ccefc35c236 /src/new_fields/Doc.ts
parentf745ee91930c2b559098c5c6d75d5108edca2f01 (diff)
undo tests
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index 0340806ef..27dcfba08 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -281,7 +281,6 @@ export namespace Doc {
}
export function expandTemplateLayout(templateLayoutDoc: Doc, dataDoc?: Doc) {
- return templateLayoutDoc;
let resolvedDataDoc = (templateLayoutDoc !== dataDoc) ? dataDoc : undefined;
if (!dataDoc || !(templateLayoutDoc && !(Cast(templateLayoutDoc.layout, Doc) instanceof Doc) && resolvedDataDoc && resolvedDataDoc !== templateLayoutDoc)) {
return templateLayoutDoc;