mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-07-01 06:30:11 +00:00
fix wrong example code
This commit is contained in:
@@ -12,11 +12,11 @@ import BootstrapTable from 'react-bootstrap-table-next';
|
||||
import filterFactory, { textFilter } from 'react-bootstrap-table2-filter';
|
||||
|
||||
class Table extends React.Component {
|
||||
filterByPrice = (filterVal) => {
|
||||
filterByPrice = (filterVal, data) => {
|
||||
if (filterVal) {
|
||||
return products.filter(product => product.price == filterVal);
|
||||
return data.filter(product => product.price == filterVal);
|
||||
}
|
||||
return products;
|
||||
return data;
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user