mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-09 09:51:02 +01:00
allow empty ctor
This commit is contained in:
parent
33d690cbd5
commit
ed89dfaba7
@ -9,7 +9,11 @@ export class AttachmentView implements View {
|
|||||||
sizeName: string;
|
sizeName: string;
|
||||||
fileName: string;
|
fileName: string;
|
||||||
|
|
||||||
constructor(a: Attachment) {
|
constructor(a?: Attachment) {
|
||||||
|
if (!a) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.id = a.id;
|
this.id = a.id;
|
||||||
this.url = a.url;
|
this.url = a.url;
|
||||||
this.size = a.size;
|
this.size = a.size;
|
||||||
|
Loading…
Reference in New Issue
Block a user