diff --git a/src/models/response/listResponse.ts b/src/models/response/listResponse.ts index d879e0f53f..b6cfdf5feb 100644 --- a/src/models/response/listResponse.ts +++ b/src/models/response/listResponse.ts @@ -3,7 +3,7 @@ export class ListResponse { continuationToken: string; constructor(response: any, t: new (dataResponse: any) => T) { - this.data = response.Data.map((dr: any) => new t(dr)); + this.data = response.Data == null ? [] : response.Data.map((dr: any) => new t(dr)); this.continuationToken = response.ContinuationToken; } }