From c0efc1d1226d14b40cf7f9488027d32a73e4067b Mon Sep 17 00:00:00 2001 From: Snorkell Date: Wed, 17 Apr 2019 15:01:34 +0200 Subject: [PATCH] Fix pagination serializer --- src/api/serializers/serializerParams.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/serializers/serializerParams.ts b/src/api/serializers/serializerParams.ts index 84d46851..56683656 100644 --- a/src/api/serializers/serializerParams.ts +++ b/src/api/serializers/serializerParams.ts @@ -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;