diff --git a/frontend/src/angular/src/app/doc-search/doc-search.component.ts b/frontend/src/angular/src/app/doc-search/doc-search.component.ts index 57d4e04..d4f03e7 100644 --- a/frontend/src/angular/src/app/doc-search/doc-search.component.ts +++ b/frontend/src/angular/src/app/doc-search/doc-search.component.ts @@ -65,6 +65,7 @@ export class DocSearchComponent { .pipe(takeUntilDestroyed(this.destroyRef), tap(() => this.searching = false), tap(() => this.repeatSub?.unsubscribe()), catchError(error => { console.log(error); this.requestFailed = true; + this.searching = false; return of({documents: [], resultStrings: [], searchString: ''} as DocumentSearchResult); })) .subscribe(result => {