aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/components/TableBox.tsx
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2023-08-07 13:30:40 -0400
committersrichman333 <sarah_n_richman@brown.edu>2023-08-07 13:30:40 -0400
commit85f91733a21c7b41829eb9280ce33e90783c926d (patch)
tree867a51a683b04dc15c00b77aeb63ccd2ff5c4639 /src/client/views/nodes/DataVizBox/components/TableBox.tsx
parent1bfa61ae441458cdcd860eb39e617417d013f1fa (diff)
selected data at bottom of graph
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/TableBox.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/components/TableBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/TableBox.tsx b/src/client/views/nodes/DataVizBox/components/TableBox.tsx
index a7cc3f2fb..38dd62d8d 100644
--- a/src/client/views/nodes/DataVizBox/components/TableBox.tsx
+++ b/src/client/views/nodes/DataVizBox/components/TableBox.tsx
@@ -49,7 +49,7 @@ export class TableBox extends React.Component<TableBoxProps> {
if (!this.props.layoutDoc.rowGuids) this.props.layoutDoc.rowGuids = new List<string>();
const guids = Cast(this.props.layoutDoc.rowGuids, listSpec("string"), null);
if (guids.length==0) this.props.pairs.map(row => guids.push(Utils.GenerateGuid()));
- return this._tableData.length ? Array.from(Object.keys(this._tableData[0])).filter(header => header!='') : [];
+ return this._tableData.length ? Array.from(Object.keys(this._tableData[0])).filter(header => header!='' && header!=undefined) : [];
}
filterSelectedRowsDown() {
@@ -66,7 +66,7 @@ export class TableBox extends React.Component<TableBoxProps> {
this.filterSelectedRowsDown();
if (this._tableData.length>0){
return (
- <div className="table-container" style={{height: this.props.height+this.props.margin.top+this.props.margin.bottom}}>
+ <div className="table-container" style={{height: this.props.height}}>
<table className="table">
<thead>
<tr className="table-row">