diff --git a/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts b/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts index 4e51ddda5..a185664fe 100644 --- a/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts @@ -29,7 +29,7 @@ export class FileDownloadBtnComponent { get canDownloadFiles() { if (Array.isArray(this.file)) { - return this.file.reduce((acc, file) => acc && this._permissionsService.canDownloadRedactedFile(file), true); + return this.file.length > 0 && this.file.reduce((acc, file) => acc && this._permissionsService.canDownloadRedactedFile(file), true); } else { return this._permissionsService.canDownloadRedactedFile(this.file); }