From 12e6b31486a45a56117dfbbebad8bae3d69f0556 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 15 Jun 2020 14:47:37 +0200 Subject: [PATCH] Fix search error loop --- client/src/app/search/search.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/app/search/search.component.ts b/client/src/app/search/search.component.ts index 0439fdf51..eea015c2e 100644 --- a/client/src/app/search/search.component.ts +++ b/client/src/app/search/search.component.ts @@ -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.'),