Skip to content

Commit a534d52

Browse files
committed
fix wrong example code
1 parent 856e63d commit a534d52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-bootstrap-table2-example/examples/column-filter/custom-filter-logic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import BootstrapTable from 'react-bootstrap-table-next';
1212
import filterFactory, { textFilter } from 'react-bootstrap-table2-filter';
1313
1414
class Table extends React.Component {
15-
filterByPrice = (filterVal) => {
15+
filterByPrice = (filterVal, data) => {
1616
if (filterVal) {
17-
return products.filter(product => product.price == filterVal);
17+
return data.filter(product => product.price == filterVal);
1818
}
19-
return products;
19+
return data;
2020
}
2121
2222
render() {

0 commit comments

Comments
 (0)