Skip to content

Commit 577d241

Browse files
AdamF42github-actions[bot]
authored andcommitted
[DURACOM-312] lint fix
(cherry picked from commit c68e5a1)
1 parent 0c564cb commit 577d241

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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)