File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -1505,7 +1505,7 @@ BootstrapTable.defaultProps = {
1505
1505
nextPageTitle : Const . NEXT_PAGE_TITLE ,
1506
1506
firstPageTitle : Const . FIRST_PAGE_TITLE ,
1507
1507
lastPageTitle : Const . LAST_PAGE_TITLE ,
1508
- pageStartIndex : undefined ,
1508
+ pageStartIndex : 1 ,
1509
1509
searchDelayTime : undefined ,
1510
1510
exportCSVText : Const . EXPORT_CSV_TEXT ,
1511
1511
insertText : Const . INSERT_BTN_TEXT ,
Original file line number Diff line number Diff line change @@ -49,15 +49,10 @@ export default {
49
49
// We calculate an offset here in order to properly fetch the indexed data,
50
50
// despite the page start index not always being 1
51
51
getNormalizedPage ( pageStartIndex , page ) {
52
+ pageStartIndex = this . getFirstPage ( pageStartIndex ) ;
52
53
if ( page === undefined ) page = pageStartIndex ;
53
- let normalizedPage ;
54
- if ( pageStartIndex !== undefined ) {
55
- const offset = Math . abs ( Const . PAGE_START_INDEX - pageStartIndex ) ;
56
- normalizedPage = page + offset ;
57
- } else {
58
- normalizedPage = page ;
59
- }
60
- return normalizedPage ;
54
+ const offset = Math . abs ( Const . PAGE_START_INDEX - pageStartIndex ) ;
55
+ return page + offset ;
61
56
} ,
62
57
63
58
getFirstPage ( pageStartIndex ) {
You can’t perform that action at this time.
0 commit comments