[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 0c564cb9c2
commit 577d241379

View File

@@ -170,10 +170,10 @@ export class UploaderComponent implements OnInit, AfterViewInit {
// Ensure the behalf header is set if impersonating // Ensure the behalf header is set if impersonating
this.uploader.options.headers = [ this.uploader.options.headers = [
{ name: XSRF_REQUEST_HEADER, value: this.tokenExtractor.getToken() }, { 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.onBeforeUpload();
this.isOverDocumentDropZone = observableOf(false); this.isOverDocumentDropZone = observableOf(false);
}; };