aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/components/TableBox.tsx
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2023-08-17 10:41:34 -0400
committersrichman333 <sarah_n_richman@brown.edu>2023-08-17 10:41:34 -0400
commit18b3b9e5eab4a7902390033feb0a1c7e379cf7d6 (patch)
treefdd1d7e6c37ed0204447981c72f5924b35d0dd22 /src/client/views/nodes/DataVizBox/components/TableBox.tsx
parent61fb855ec92540c48cc4cc844d3b21728e8a4754 (diff)
text tells user to select more / different data bug fix + other console error fixes
Diffstat (limited to 'src/client/views/nodes/DataVizBox/components/TableBox.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/components/TableBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/TableBox.tsx b/src/client/views/nodes/DataVizBox/components/TableBox.tsx
index f56d34fa6..7b3e700ac 100644
--- a/src/client/views/nodes/DataVizBox/components/TableBox.tsx
+++ b/src/client/views/nodes/DataVizBox/components/TableBox.tsx
@@ -155,7 +155,7 @@ export class TableBox extends React.Component<TableBoxProps> {
})} style={{ background: StrListCast(this.props.layoutDoc.selected).includes(guid) ? 'lightgrey' : '', width: '110%' }}>
{this.columns.map(col => {
// each cell
- var colSelected = this.props.axes[0]==col || this.props.axes[1]==col;
+ var colSelected = this.props.axes.length>1? (this.props.axes[0]==col || this.props.axes[1]==col) : this.props.axes.length>0? this.props.axes[0]==col : false;
return (
<td key={this.columns.indexOf(col)} style={{border: colSelected? '3px solid black' : '1px solid black', fontWeight: colSelected? 'bolder' : 'normal'}}>
{p[col]}