Skip to content

Commit 9049073

Browse files
authored
Merge pull request #1 from cedrouck/cedrouck-patch-1
Fix: Cannot read property 'type' of undefined
2 parents a04886c + 048003f commit 9049073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapTable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class BootstrapTable extends Component {
6262
const nextDataFields = React.Children.map(props.children, column => column.props.dataField);
6363
React.Children.forEach(this.props.children, column => {
6464
const { dataField, filter } = column.props;
65-
if (!nextDataFields.includes(dataField)) {
65+
if (filter && !nextDataFields.includes(dataField)) {
6666
// Clear filter
6767
this.filter.handleFilter(dataField, '', filter.type, filter);
6868
}

0 commit comments

Comments
 (0)