fix for table top row

This commit is contained in:
Martina 2020-09-13 22:24:49 -07:00
parent 6fd9da0eaa
commit 3b05fdc566

View File

@ -132,11 +132,7 @@ export class Table extends React.Component {
{this.props.noLabel ? null : (
<div css={STYLES_TABLE_TOP_ROW} style={this.props.topRowStyle}>
{data.columns.map((c, cIndex) => {
const text = c.hideLabel
? ""
: Strings.isEmpty(c.name)
? c.key
: c.name;
const text = c.hideLabel ? "" : c.name ? c.name : c.key;
let localWidth = c.width ? c.width : width;
let flexShrink = c.width && c.width !== "100%" ? "0" : null;
if (cIndex === 0 && !c.width) {