diff --git a/src/frontend/app/indexation/indexation.component.ts b/src/frontend/app/indexation/indexation.component.ts index db5986b199b9a682a40a7c68cb5bcb749b322892..bd471427f1f4f61ee8ec3c1e85c8965543c89718 100644 --- a/src/frontend/app/indexation/indexation.component.ts +++ b/src/frontend/app/indexation/indexation.component.ts @@ -311,9 +311,11 @@ export class IndexationComponent implements OnInit { }, 500); } }; + if (index === fileInput.target.files.length - 1) { + load.dismiss(); + } } this.fileImport.nativeElement.value = ''; - load.dismiss(); } else { this.loading = false; load.dismiss();