diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-15 14:47:37 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-06-15 15:04:51 +0200 |
commit | 12e6b31486a45a56117dfbbebad8bae3d69f0556 (patch) | |
tree | 93088c839d40eef853bc6de602eeef64d71d17ff | |
parent | ba11402435a709c2279411704611f94c5bef51fc (diff) | |
download | PeerTube-12e6b31486a45a56117dfbbebad8bae3d69f0556.tar.gz PeerTube-12e6b31486a45a56117dfbbebad8bae3d69f0556.tar.zst PeerTube-12e6b31486a45a56117dfbbebad8bae3d69f0556.zip |
Fix search error loop
-rw-r--r-- | client/src/app/search/search.component.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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 { | |||
148 | }, | 148 | }, |
149 | 149 | ||
150 | err => { | 150 | err => { |
151 | if (this.advancedSearch.searchTarget !== 'search-index') this.notifier.error(err.message) | 151 | if (this.advancedSearch.searchTarget !== 'search-index') { |
152 | this.notifier.error(err.message) | ||
153 | return | ||
154 | } | ||
152 | 155 | ||
153 | this.notifier.error( | 156 | this.notifier.error( |
154 | this.i18n('Search index is unavailable. Retrying with instance results instead.'), | 157 | this.i18n('Search index is unavailable. Retrying with instance results instead.'), |