Skip to content

Commit d39e133

Browse files
author
Michael
committed
Merge branch 'feature/fix-searchbar-and-body'
2 parents 1ec9994 + e4e50d9 commit d39e133

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/react-bootstrap-table2-toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@musicstory/react-bootstrap-table2-toolkit",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "The toolkit for react-bootstrap-table2 by musicstory",
55
"main": "./lib/index.js",
66
"repository": {

packages/react-bootstrap-table2-toolkit/src/search/SearchBar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import PropTypes from 'prop-types';
66
const handleDebounce = (func, wait, immediate) => {
77
let timeout;
88

9-
return () => {
9+
return (...args) => {
1010
const later = () => {
1111
timeout = null;
1212

1313
if (!immediate) {
14-
func.apply(this, arguments);
14+
func.apply(this, args);
1515
}
1616
};
1717

@@ -22,7 +22,7 @@ const handleDebounce = (func, wait, immediate) => {
2222
timeout = setTimeout(later, wait || 0);
2323

2424
if (callNow) {
25-
func.appy(this, arguments);
25+
func.apply(this, args);
2626
}
2727
};
2828
};

packages/react-bootstrap-table2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@musicstory/react-bootstrap-table-next",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Next generation of react-bootstrap-table by musicstory",
55
"main": "./lib/index.js",
66
"repository": {

packages/react-bootstrap-table2/src/body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Body extends React.Component {
8787
additionalRowProps.selectRow = selectRow;
8888
}
8989

90-
content = data.map((row, index) => {
90+
content = data.filter(row => row).map((row, index) => {
9191
const key = _.get(row, keyField);
9292
const baseRowProps = {
9393
key,

0 commit comments

Comments
 (0)