Simplify this

This commit is contained in:
shamoon
2026-02-11 21:39:02 -08:00
parent fe6b3a1a41
commit de09a62550

View File

@@ -366,13 +366,9 @@ export class DocumentDetailComponent
}
private updatePdfSource() {
if (!this.previewUrl) {
this.pdfSource = undefined
return
}
this.pdfSource = {
url: this.previewUrl,
password: this.password || undefined,
password: this.password,
}
}