diff options
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/collections/CollectionDockingView.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/views/collections/CollectionDockingView.tsx b/src/views/collections/CollectionDockingView.tsx index fd492503d..3d0c39c9d 100644 --- a/src/views/collections/CollectionDockingView.tsx +++ b/src/views/collections/CollectionDockingView.tsx @@ -43,8 +43,7 @@ export class CollectionDockingView extends React.Component<CollectionViewProps> const { fieldKey, Document: Document } = this.props; const value: Document[] = Document.GetFieldValue(fieldKey, ListField, []); var docs = value.map(doc => { - var d = { type: 'component', componentName: 'documentViewComponent', componentState: { doc: doc } }; - return d; + return { type: 'component', componentName: 'documentViewComponent', componentState: { doc: doc } }; }); return new GoldenLayout({ content: [ { type: 'row', content: docs } ] }); } |
