diff options
author | bobzel <zzzman@gmail.com> | 2020-10-09 17:09:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 17:09:56 -0400 |
commit | 9d7fe0e330ada16620b4a938ea28a9b3b993c376 (patch) | |
tree | 7b8e513d6d276d0ca67f73ab111e797454b74e02 /src/client/documents/Documents.ts | |
parent | d4e967ed8fc2f99d44b887ebabf0a4eb642ecaab (diff) | |
parent | 2555972e14046d7042ed575db1d80c8a7ba06ae6 (diff) |
Merge pull request #854 from browngraphicslab/brokenGroups
Broken groups
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 7ee8267f8..7d78bd76a 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -244,6 +244,7 @@ export namespace Docs { view: LayoutSource, dataField: string }, + data?: any, options?: Partial<DocumentOptions> }; type TemplateMap = Map<DocumentType, PrototypeTemplate>; @@ -464,6 +465,7 @@ export namespace Docs { const options = { title, type, baseProto: true, ...defaultOptions, ...(template.options || {}) }; options.layout = layout.view?.LayoutString(layout.dataField); const doc = Doc.assign(new Doc(prototypeId, true), { system: true, layoutKey: "layout", ...options }); + doc.data = template.data; doc.layout_keyValue = KeyValueBox.LayoutString(""); return doc; } |