@wavemaker/app-ng-runtime 11.4.0-next.24563 → 11.4.0-next.24564

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5340,7 +5340,13 @@
5340
5340
  fieldDefs = [];
5341
5341
  parent.gridOptions.setCurrentPage(1);
5342
5342
  }
5343
- var currentPage = parent.gridOptions.showviewlessbutton && (parent.gridOptions.mode === 'viewless') ? parent.gridOptions.getCurrentPage() : parent.currentPage;
5343
+ var currentPage;
5344
+ if (parent.widgetType === 'wm-table') {
5345
+ currentPage = parent.gridOptions.showviewlessbutton && (parent.gridOptions.mode === 'viewless') ? parent.gridOptions.getCurrentPage() : parent.currentPage;
5346
+ }
5347
+ else {
5348
+ currentPage = parent.currentPage;
5349
+ }
5344
5350
  var dataNavigator = parent.dataNavigator;
5345
5351
  var pagesize = parent.pagesize;
5346
5352
  if (!isDefined(fieldDefs) || dataNavigator.isFirstPage()) {