diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-01 03:35:47 -0400 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-01 03:35:47 -0400 |
| commit | 5373b236dcb83c6d245da1e38c3caf13973b1b95 (patch) | |
| tree | cb86de35577d74d44b97a99809a7a5d02ce28084 /src/client/views/collections | |
| parent | a2e447925dd9fc9300d1c812cd202acf0de1aa95 (diff) | |
| parent | 707e66f1d934e6b6185d9701a8b5138c0f15c90e (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionStackingView.tsx | 2 | ||||
| -rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index 088a9bae8..b10907937 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -78,7 +78,7 @@ export class CollectionStackingView extends CollectionSubView(doc => doc) { style={{ width: width(), height: height() }} > <CollectionSchemaPreview Document={layoutDoc} - DataDocument={d != this.props.DataDoc ? this.props.DataDoc : undefined} + DataDocument={d !== this.props.DataDoc ? this.props.DataDoc : undefined} renderDepth={this.props.renderDepth} width={width} height={height} diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index dd165e90c..927aa363f 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -186,8 +186,7 @@ class TreeView extends React.Component<TreeViewProps> { } let keyList: string[] = keys.reduce((l, key) => { let listspec = DocListCast(this.resolvedDataDoc[key]); - if (listspec && listspec.length) - return [...l, key]; + if (listspec && listspec.length) return [...l, key]; return l; }, [] as string[]); keys.map(key => Cast(this.resolvedDataDoc[key], Doc) instanceof Doc && keyList.push(key)); |
