fixed download if no image return empty
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user