diff options
author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-14 16:41:31 -0500 |
---|---|---|
committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-14 16:41:31 -0500 |
commit | 51a09fd7abdc44902587b2b610bf728908e288e7 (patch) | |
tree | e443b983479f7ba222771596a21b462d4367a29a /src/client/documents/Documents.ts | |
parent | d4bc59df1de20fd95dd91d0ebd064ba0cf046c46 (diff) |
inline images (need resizing)
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 37858bbd9..865fc296b 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -385,7 +385,7 @@ export namespace Docs { // synthesize the default options, the type and title from computed values and // whatever options pertain to this specific prototype const options = { title, type, baseProto: true, ...defaultOptions, ...(template.options || {}) }; - options.layout = layout.view.LayoutString(layout.dataField); + options.layout = layout.view?.LayoutString(layout.dataField); const doc = Doc.assign(new Doc(prototypeId, true), { layoutKey: "layout", ...options }); doc.layout_keyValue = KeyValueBox.LayoutString(""); return doc; |