Skip to content

Commit

Permalink
Merge pull request #61 from truj/master
Browse files Browse the repository at this point in the history
Fixed concatenation error
  • Loading branch information
michaelbromley authored Jul 22, 2016
2 parents 6f138dd + bba03a1 commit f9e228b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/paginate-pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class PaginatePipe {

if (!serverSideMode && collection instanceof Array) {
perPage = perPage || LARGE_NUMBER;
perPage = +perPage; // convert to number; avoid concatenation when calculating 'end'
start = (instance.currentPage - 1) * perPage;
end = start + perPage;

Expand Down

0 comments on commit f9e228b

Please sign in to comment.