fix status checks to avoid show list of errors when the job is still processing
This commit is contained in:
parent
6cd2e583c5
commit
fa2b14e9b4
|
@ -579,7 +579,7 @@ export class ClaimInsertComponent {
|
||||||
this.subscriptions.push(this.claimService.getStatus(this.claimsJob.id, this.properties.claimsAPIURL).subscribe(data => {
|
this.subscriptions.push(this.claimService.getStatus(this.claimsJob.id, this.properties.claimsAPIURL).subscribe(data => {
|
||||||
console.log("claim", data);
|
console.log("claim", data);
|
||||||
this.claimsJob = data.data;
|
this.claimsJob = data.data;
|
||||||
if (this.claimsJob.status == "COMPLETE" || data.data.status == "ERROR" && (!(this.feedRecordsJob.status == "COMPLETE" || data.data.status == "ERROR")) || !this.feedRecordsJob) {
|
if ((this.claimsJob.status == "COMPLETE" || data.data.status == "ERROR") && ( !this.feedRecordsJob || !(this.feedRecordsJob.status == "COMPLETE" || data.data.status == "ERROR")) ) {
|
||||||
this.insertedClaims = this.claimsJob.insertedIds;
|
this.insertedClaims = this.claimsJob.insertedIds;
|
||||||
this.errorInClaims = this.claimsJob.errorInClaims;
|
this.errorInClaims = this.claimsJob.errorInClaims;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue