mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
data is never null
This commit is contained in:
parent
3cc759791e
commit
ec505b8c55
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user