Skip to content

Commit

Permalink
Fix pagination serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Snorkell committed Apr 17, 2019
1 parent 8b931df commit c0efc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/serializers/serializerParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class SerializerParams {
*/
public hasPaginationEnabled() : boolean
{
if (this.paginationData && this.paginationData.total && this.paginationData.request && this.paginationData.request.query.page && this.paginationData.request.query.number)
if (this.paginationData && this.paginationData.total && this.paginationData.request && this.paginationData.request.query.page && this.paginationData.request.query.page.number && this.paginationData.request.query.page.size)
return true;
else
return false;
Expand Down

0 comments on commit c0efc1d

Please sign in to comment.