Skip to content

Commit 98499b2

Browse files
committed
Loosely compare options.page to null
1 parent 533b556 commit 98499b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"react/sort-comp": 0,
3333
"react/jsx-no-bind": 0,
3434
"react/jsx-boolean-value": 0,
35-
35+
"eqeqeq": [2, "smart"],
3636
"quotes": [2, "single", "avoid-escape"],
3737
"jsx-quotes": [2, "prefer-single"],
3838
"comma-dangle": [2, "never"],

src/BootstrapTable.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class BootstrapTable extends Component {
144144
this.store.setData(nextProps.data.slice());
145145

146146
let page;
147-
if (options.page !== 'undefined') {
147+
if (options.page != null) {
148148
page = options.page;
149149
} else {
150150
page = this.state.currPage;
@@ -399,7 +399,7 @@ class BootstrapTable extends Component {
399399
isSelected ? this.store.get() : []);
400400
}
401401

402-
if (typeof result === 'undefined' || result !== false) {
402+
if (typeof result == 'undefined' || result !== false) {
403403
if (isSelected) {
404404
selectedRowKeys = this.store.getAllRowkey();
405405
}

0 commit comments

Comments
 (0)