diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-01-23 20:10:30 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-01-23 20:10:30 -0500 |
commit | a12add7f43e7de4d87a139dde6cd483769a7fa5e (patch) | |
tree | 8fe1bae838327541645324468b4241d281e0538a /src/client/views/collections/CollectionStackingViewFieldColumn.tsx | |
parent | 846e1c7eba28f042509ec84c31afe2bcbb5a2283 (diff) | |
parent | 6062447ffdaac22212f7529fcb9d4768739f5232 (diff) |
fixes to template editing in stacking view
Diffstat (limited to 'src/client/views/collections/CollectionStackingViewFieldColumn.tsx')
-rw-r--r-- | src/client/views/collections/CollectionStackingViewFieldColumn.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx index 29dfb60c5..5a919c2bc 100644 --- a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx +++ b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx @@ -141,7 +141,8 @@ export class CollectionStackingViewFieldColumn extends React.Component<CSVFieldC const { Document, addDocument } = this.props.parent.props; const fieldKey = value.substring(1); const proto = Doc.GetProto(Document); - const created = Docs.Get.DocumentFromField(Document, fieldKey, proto); + const dataDoc = this.props.parent.props.DataDoc || this.props.parent.dataDoc; + const created = Docs.Get.DocumentFromField(dataDoc, fieldKey, proto); if (created) { created.title = fieldKey; if (this.props.parent.Document.isTemplateDoc) { |