File tree 3 files changed +3
-3
lines changed 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1250,7 +1250,7 @@ window.ReactDOM["default"] = window.ReactDOM;
1250
1250
} , {
1251
1251
key : 'updateCurrentPage' ,
1252
1252
value : function updateCurrentPage ( nextPage ) {
1253
- if ( nextPage !== this . state . currentPage ) {
1253
+ if ( typeof nextPage !== 'undefined' && nextPage !== this . state . currentPage ) {
1254
1254
this . setState ( { currentPage : nextPage } ) ;
1255
1255
}
1256
1256
}
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ var Table = (function (_React$Component) {
281
281
} , {
282
282
key : 'updateCurrentPage' ,
283
283
value : function updateCurrentPage ( nextPage ) {
284
- if ( nextPage !== this . state . currentPage ) {
284
+ if ( typeof nextPage !== 'undefined' && nextPage !== this . state . currentPage ) {
285
285
this . setState ( { currentPage : nextPage } ) ;
286
286
}
287
287
}
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ export class Table extends React.Component {
240
240
}
241
241
242
242
updateCurrentPage ( nextPage ) {
243
- if ( nextPage !== this . state . currentPage ) {
243
+ if ( typeof ( nextPage ) !== 'undefined' && nextPage !== this . state . currentPage ) {
244
244
this . setState ( { currentPage : nextPage } ) ;
245
245
}
246
246
}
You can’t perform that action at this time.
0 commit comments