diff options
author | bobzel <zzzman@gmail.com> | 2020-06-30 16:13:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 16:13:58 -0400 |
commit | d9f849a8e227cca897ee0a50746e08bb513f2b94 (patch) | |
tree | 4c4d0997b2d91d570454c889b43b206c34aa4e59 /src/client/documents/Documents.ts | |
parent | 45d4390a70f0a1199718f006cdbaef3029c19443 (diff) | |
parent | 8c01af79d62b94488dcef2964e89ee6a943c5663 (diff) |
Merge pull request #427 from browngraphicslab/anika_schema_view
Schema view modifications
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 9feee0d47..3d4694bc5 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -414,7 +414,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; |