diff --git a/claims/linking/bulkClaim/bulkClaim.component.ts b/claims/linking/bulkClaim/bulkClaim.component.ts index 0e296e87..e8b4f482 100644 --- a/claims/linking/bulkClaim/bulkClaim.component.ts +++ b/claims/linking/bulkClaim/bulkClaim.component.ts @@ -150,7 +150,7 @@ export class BulkClaimComponent { } this.loading.open(); - this.makeFileRequest(this.properties.utilsService + '/upload', [], this.filesToUpload).then((result) => { + this.makeFileRequest(this.properties.utilsService + '/upload', [], this.filesToUpload).then(async (result) => { const rows = (result as any).split('\n'); // I have used space, you can use any thing. this.exceedsLimit = false; let invalid_rows = 0; @@ -179,6 +179,7 @@ export class BulkClaimComponent { this.allIds.push(id); if (currentLength < this.basketLimit){ currentLength++; + await new Promise((resolve) => setTimeout(resolve, 100)); this.fetchResult(id, accessMode, Dates.getDateToString(embargoDate), i + 1); }else{ this.exceedsLimit = true;