Skip to content

Commit c68e5a1

Browse files
committed
[DURACOM-312] lint fix
1 parent 0574c8e commit c68e5a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/shared/upload/uploader/uploader.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ export class UploaderComponent implements OnInit, AfterViewInit {
170170
// Ensure the behalf header is set if impersonating
171171
this.uploader.options.headers = [
172172
{ name: XSRF_REQUEST_HEADER, value: this.tokenExtractor.getToken() },
173-
...(hasValue(this.uploadFilesOptions.impersonatingID)
174-
? [{ name: this.ON_BEHALF_HEADER, value: this.uploadFilesOptions.impersonatingID }]
175-
: [])
176173
];
174+
if (hasValue(this.uploadFilesOptions.impersonatingID)) {
175+
this.uploader.options.headers.push({ name: this.ON_BEHALF_HEADER, value: this.uploadFilesOptions.impersonatingID });
176+
}
177177
this.onBeforeUpload();
178178
this.isOverDocumentDropZone = observableOf(false);
179179
};

0 commit comments

Comments
 (0)