Fix search error loop

This commit is contained in:
Chocobozzz 2020-06-15 14:47:37 +02:00
parent ba11402435
commit 12e6b31486
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -148,7 +148,10 @@ export class SearchComponent implements OnInit, OnDestroy {
},
err => {
if (this.advancedSearch.searchTarget !== 'search-index') this.notifier.error(err.message)
if (this.advancedSearch.searchTarget !== 'search-index') {
this.notifier.error(err.message)
return
}
this.notifier.error(
this.i18n('Search index is unavailable. Retrying with instance results instead.'),