aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorAndy Rickert <andrew_rickert@brown.edu>2020-08-05 16:26:39 -0400
committerAndy Rickert <andrew_rickert@brown.edu>2020-08-05 16:26:39 -0400
commitd5d0a46c0fdb6a1839c56927c66e332b14f5189f (patch)
treeb10c491176f06fe9c5bfd34b1b9989ac81d6f31d /src/client/views/collections
parent6612acac309767c6deafc45d931e42ff1ee4c86b (diff)
final changes for bob
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/SchemaTable.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/collections/SchemaTable.tsx b/src/client/views/collections/SchemaTable.tsx
index 83830e111..0a5ef987a 100644
--- a/src/client/views/collections/SchemaTable.tsx
+++ b/src/client/views/collections/SchemaTable.tsx
@@ -177,6 +177,7 @@ export class SchemaTable extends React.Component<SchemaTableProps> {
}
);
}
+ console.log(columns);
const cols = this.props.columns.map(col => {
@@ -314,6 +315,7 @@ export class SchemaTable extends React.Component<SchemaTableProps> {
width: 28,
resizable: false
});
+ console.log(columns);
return columns;
}
@@ -493,7 +495,6 @@ export class SchemaTable extends React.Component<SchemaTableProps> {
@computed
get reactTable() {
const children = this.childDocs;
- const hasCollectionChild = children.reduce((found, doc) => found || doc.type === "collection", false);
const expandedRowsList = this._openCollections.map(col => children.findIndex(doc => doc[Id] === col).toString());
const expanded = {};
//@ts-ignore
@@ -515,8 +516,6 @@ export class SchemaTable extends React.Component<SchemaTableProps> {
resized={this.resized}
NoDataComponent={() => null}
onResizedChange={this.props.onResizedChange}
- SubComponent={!hasCollectionChild ? undefined : row => (row.original.type !== "collection") ? (null) :
- <div className="reactTable-sub"><SchemaTable {...this.props} Document={row.original} dataDoc={undefined} childDocs={undefined} /></div>}
/>;
}