From 9d7aaf3aeef4be85158ba50ca6bb0ecaa64a0c7c Mon Sep 17 00:00:00 2001 From: David Newswanger Date: Fri, 20 Jul 2018 14:05:41 -0400 Subject: [PATCH] Convert page URL parameters to integers on search page. --- galaxyui/src/app/search/search.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/galaxyui/src/app/search/search.component.ts b/galaxyui/src/app/search/search.component.ts index 942198dd5..5ade03897 100644 --- a/galaxyui/src/app/search/search.component.ts +++ b/galaxyui/src/app/search/search.component.ts @@ -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']); } }