diff options
| author | bob <bcz@cs.brown.edu> | 2019-10-21 15:45:51 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-10-21 15:45:51 -0400 |
| commit | 4d02c9b581a22da777232124f2b1a96f8e342285 (patch) | |
| tree | d9c433f1247ec3bad15c3ecdfdb8c342bcedec54 /src/client/views/collections/CollectionTreeView.tsx | |
| parent | 9586d1e6bad65070a472da7a067db03f26fe9a4c (diff) | |
initial simplification to fieldExt
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index c1b7f7e48..2cad41acb 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -317,6 +317,7 @@ class TreeView extends React.Component<TreeViewProps> { <CollectionSchemaPreview Document={layoutDoc} DataDocument={this.templateDataDoc} + fieldKey={this.fieldKey} renderDepth={this.props.renderDepth} showOverlays={this.noOverlays} ruleProvider={this.props.document.isRuleProvider && layoutDoc.type !== DocumentType.TEXT ? this.props.document : this.props.ruleProvider} @@ -556,7 +557,6 @@ export class CollectionTreeView extends CollectionSubView(Document) { } render() { - Doc.UpdateDocumentExtensionForField(this.props.DataDoc ? this.props.DataDoc : this.props.Document, this.props.fieldKey); let dropAction = StrCast(this.props.Document.dropAction) as dropActionType; let addDoc = (doc: Doc, relativeTo?: Doc, before?: boolean) => Doc.AddDocToList(this.props.Document, this.props.fieldKey, doc, relativeTo, before, false, false, false); let moveDoc = (d: Doc, target: Doc, addDoc: (doc: Doc) => boolean) => this.props.moveDocument(d, target, addDoc); |
