Skip to content

Commit

Permalink
Merge pull request #7 from frenchrabbit/dev
Browse files Browse the repository at this point in the history
fix: fix dto
  • Loading branch information
maddocnc committed Oct 24, 2023
2 parents 49545b3 + 7f4023b commit 7d94138
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/paginated-result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export class PaginatedResult<T> {
*/
pagingCounter: number = 0

constructor(data: PaginatedResult<T>) {
Object.assign(this, data)
constructor(data?: PaginatedResult<T>) {
if (data) {
Object.assign(this, data)
}
}
}

0 comments on commit 7d94138

Please sign in to comment.