1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-24 16:49:26 +01:00

data is never null

This commit is contained in:
Kyle Spearrin 2018-06-26 22:52:12 -04:00
parent 3cc759791e
commit ec505b8c55

View File

@ -3,7 +3,7 @@ export class ListResponse<T> {
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;
}
}