aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-01-19 02:36:37 -0500
committerSam Wilkins <samwilkins333@gmail.com>2020-01-19 02:36:37 -0500
commitaff9cc02750eb032ade98d77cf9ff45677063fc8 (patch)
tree12005b6e7f1d71e1b5b890f274ab9da79c7f14bf /src/client
parent76ca4c61c5bf68649b889ed6ac8b5f6dc5b16e0b (diff)
from field changes and scraping start
Diffstat (limited to 'src/client')
-rw-r--r--src/client/documents/Documents.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 9c064ece5..c3f03aede 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -664,6 +664,8 @@ export namespace Docs {
if (field instanceof ImageField) {
created = Docs.Create.ImageDocument((field as ImageField).url.href, resolved);
layout = ImageBox.LayoutString;
+ } else if (field instanceof Doc) {
+ created = field;
} else if (field instanceof VideoField) {
created = Docs.Create.VideoDocument((field as VideoField).url.href, resolved);
layout = VideoBox.LayoutString;
@@ -690,7 +692,7 @@ export namespace Docs {
created = Docs.Create.TextDocument({ ...{ width: 200, height: 25, autoHeight: true }, ...resolved });
layout = FormattedTextBox.LayoutString;
}
- created.layout = layout(fieldKey);
+ created.layout = layout?.(fieldKey);
proto && (created.proto = Doc.GetProto(proto));
return created;
}