mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
Fixed pagination issue on change page size
This commit is contained in:
@@ -178,9 +178,10 @@ export class PaginationComponent implements OnDestroy, OnInit {
|
||||
const fixedProperties = this.validateParams(queryParams);
|
||||
if (isNotEmpty(fixedProperties)) {
|
||||
this.fixRoute(fixedProperties);
|
||||
}
|
||||
} else {
|
||||
this.setFields();
|
||||
}
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -374,10 +375,10 @@ export class PaginationComponent implements OnDestroy, OnInit {
|
||||
const filteredSize = this.validatePageSize(params.pageSize);
|
||||
const fixedFields: any = {};
|
||||
if (+params.page !== validPage) {
|
||||
fixedFields.page = validPage;
|
||||
fixedFields.page = validPage.toString();
|
||||
}
|
||||
if (+params.pageSize !== filteredSize) {
|
||||
fixedFields.pageSize = filteredSize;
|
||||
fixedFields.pageSize = filteredSize.toString();
|
||||
}
|
||||
return fixedFields;
|
||||
}
|
||||
|
Reference in New Issue
Block a user