mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
data is never null
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user