mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-07-01 14:40:02 +00:00
fix tests when nonExpndable is not given
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user