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 = {
15051505 nextPageTitle : Const . NEXT_PAGE_TITLE ,
15061506 firstPageTitle : Const . FIRST_PAGE_TITLE ,
15071507 lastPageTitle : Const . LAST_PAGE_TITLE ,
1508- pageStartIndex : undefined ,
1508+ pageStartIndex : 1 ,
15091509 searchDelayTime : undefined ,
15101510 exportCSVText : Const . EXPORT_CSV_TEXT ,
15111511 insertText : Const . INSERT_BTN_TEXT ,
Original file line number Diff line number Diff line change @@ -49,15 +49,10 @@ export default {
4949 // We calculate an offset here in order to properly fetch the indexed data,
5050 // despite the page start index not always being 1
5151 getNormalizedPage ( pageStartIndex , page ) {
52+ pageStartIndex = this . getFirstPage ( pageStartIndex ) ;
5253 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 ;
6156 } ,
6257
6358 getFirstPage ( pageStartIndex ) {
You can’t perform that action at this time.
0 commit comments