Skip to content

Commit

Permalink
Convert page URL parameters to integers on search page.
Browse files Browse the repository at this point in the history
  • Loading branch information
newswangerd committed Jul 20, 2018
1 parent 0cf00fa commit 9d7aaf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions galaxyui/src/app/search/search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,13 +348,13 @@ export class SearchComponent implements OnInit, AfterViewInit {

private setPageSize(params: any) {
if (params['page_size']) {
this.paginationConfig.pageSize = params['page_size'];
this.pageSize = params['page_size'];
this.paginationConfig.pageSize = Number(params['page_size']);
this.pageSize = Number(params['page_size']);
this.pageNumber = 1;
}
if (params['page']) {
this.paginationConfig.pageNumber = params['page'];
this.pageNumber = params['page'];
this.paginationConfig.pageNumber = Number(params['page']);
this.pageNumber = Number(params['page']);
}
}

Expand Down

0 comments on commit 9d7aaf3

Please sign in to comment.