diff --git a/api/src/utils/pagination/pagination-query.pipe.ts b/api/src/utils/pagination/pagination-query.pipe.ts index 82716f8c..ee729670 100644 --- a/api/src/utils/pagination/pagination-query.pipe.ts +++ b/api/src/utils/pagination/pagination-query.pipe.ts @@ -22,7 +22,7 @@ export class PageQueryPipe transform(value: PageQueryParams) { let skip: number | undefined = undefined; let limit: number | undefined = undefined; - if ('limit' in value) { + if (value && 'limit' in value) { skip = value?.skip && parseInt(value.skip) > -1 ? parseInt(value.skip) : 0; limit =