Skip to content

Commit 926abe6

Browse files
AdamF42github-actions[bot]
authored andcommitted
[DURACOM-312] lint fix
(cherry picked from commit c68e5a1)
1 parent 97fd42a commit 926abe6

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
@@ -147,10 +147,10 @@ export class UploaderComponent {
147147
// Ensure the behalf header is set if impersonating
148148
this.uploader.options.headers = [
149149
{ name: XSRF_REQUEST_HEADER, value: this.tokenExtractor.getToken() },
150-
...(hasValue(this.uploadFilesOptions.impersonatingID)
151-
? [{ name: this.ON_BEHALF_HEADER, value: this.uploadFilesOptions.impersonatingID }]
152-
: [])
153150
];
151+
if (hasValue(this.uploadFilesOptions.impersonatingID)) {
152+
this.uploader.options.headers.push({ name: this.ON_BEHALF_HEADER, value: this.uploadFilesOptions.impersonatingID });
153+
}
154154
this.onBeforeUpload();
155155
this.isOverDocumentDropZone = observableOf(false);
156156
};

0 commit comments

Comments
 (0)