From 5a5f10f609f5b7947c9c4273fdcd3b54ce85873a Mon Sep 17 00:00:00 2001 From: Vincent Degroote <1230888+vinzentt@users.noreply.github.com> Date: Wed, 5 Dec 2018 11:23:38 +0100 Subject: [PATCH] fix tests when nonExpndable is not given --- packages/react-bootstrap-table2/src/row-expand/expand-cell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-bootstrap-table2/src/row-expand/expand-cell.js b/packages/react-bootstrap-table2/src/row-expand/expand-cell.js index 4e42c48..b12ceee 100644 --- a/packages/react-bootstrap-table2/src/row-expand/expand-cell.js +++ b/packages/react-bootstrap-table2/src/row-expand/expand-cell.js @@ -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 (