fixed download if no image return empty

This commit is contained in:
2026-09-20 15:30:22 +10:00
parent 3d83e95613
commit 5292b99af6
5 changed files with 60 additions and 14 deletions
+2 -2
View File
@@ -71,9 +71,9 @@ export class PhotoList implements OnInit, OnDestroy {
let typeofCall = "personId_" + id.toString();
let criteria:any ={id, fileName:''};
let criteria: any = { id };
this.downloadFile.set(false);
this.http.getFileResponse("api/FileUpload/downloadPersonPhoto", criteria).pipe(
this.http.getFileResponse("api/FileUpload/DownloadPersonPhotoById", criteria).pipe(
catchError(err => {
console.error(err.message);
return EMPTY;