[DURACOM-312] lint fix

(cherry picked from commit c68e5a181d)
This commit is contained in:
Adamo
2025-05-02 11:04:40 +02:00
committed by github-actions[bot]
parent 97fd42a2e1
commit 926abe6241

View File

@@ -147,10 +147,10 @@ export class UploaderComponent {
// Ensure the behalf header is set if impersonating
this.uploader.options.headers = [
{ name: XSRF_REQUEST_HEADER, value: this.tokenExtractor.getToken() },
...(hasValue(this.uploadFilesOptions.impersonatingID)
? [{ name: this.ON_BEHALF_HEADER, value: this.uploadFilesOptions.impersonatingID }]
: [])
];
if (hasValue(this.uploadFilesOptions.impersonatingID)) {
this.uploader.options.headers.push({ name: this.ON_BEHALF_HEADER, value: this.uploadFilesOptions.impersonatingID });
}
this.onBeforeUpload();
this.isOverDocumentDropZone = observableOf(false);
};