Skip to content

Commit ad9c927

Browse files
authored
Update BootstrapTable.js
change if (nextProps.data === undefined) { return } to if (!nextProps.data) { return; }
1 parent ed52b73 commit ad9c927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BootstrapTable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ class BootstrapTable extends Component {
215215
let { replace } = nextProps;
216216
replace = replace || this.props.replace;
217217

218-
if (nextProps.data === undefined) {
219-
return;
218+
if (!nextProps.data) {
219+
return;
220220
}
221221
this.store.setData(nextProps.data.slice());
222222

0 commit comments

Comments
 (0)