removed dld bttn for empty project
This commit is contained in:
parent
339a7632ea
commit
ae429cfa5a
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user