diff --git a/js/components/sortableTable.js b/js/components/sortableTable.js index f19260e8901..58a546620e6 100644 --- a/js/components/sortableTable.js +++ b/js/components/sortableTable.js @@ -363,14 +363,15 @@ class SortableTable extends React.Component { ? this.getRowAttributes(row, i) : null - const classes = [rowAttributes.className] + const classes = [] + if (rowAttributes) classes.push(rowAttributes.className) if (this.hasRowClassNames) classes.push(this.props.rowClassNames[i]) if (this.stateOwner.state.selection.includes(this.getGlobalIndex(i))) classes.push('selected') if (this.sortingDisabled) classes.push('no-sort') return row.length ?