From: Chocobozzz Date: Mon, 15 Jun 2020 12:47:37 +0000 (+0200) Subject: Fix search error loop X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=12e6b31486a45a56117dfbbebad8bae3d69f0556;p=oweals%2Fpeertube.git Fix search error loop --- 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.'),