fix tests when nonExpndable is not given

This commit is contained in:
Vincent Degroote
2018-12-05 11:23:38 +01:00
parent e041a3d736
commit 5a5f10f609

View File

@@ -41,7 +41,7 @@ export default class ExpandCell extends Component {
render() {
const { expanded, nonExpandable, expandColumnRenderer, tabIndex } = this.props;
const attrs = {};
const isExpandable = !nonExpandable.includes(this.props.rowKey);
const isExpandable = !nonExpandable || !nonExpandable.includes(this.props.rowKey);
if (tabIndex !== -1) attrs.tabIndex = tabIndex;
return (