mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
allow empty ctor
This commit is contained in:
@@ -9,7 +9,11 @@ export class AttachmentView implements View {
|
||||
sizeName: string;
|
||||
fileName: string;
|
||||
|
||||
constructor(a: Attachment) {
|
||||
constructor(a?: Attachment) {
|
||||
if (!a) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.id = a.id;
|
||||
this.url = a.url;
|
||||
this.size = a.size;
|
||||
|
||||
Reference in New Issue
Block a user