mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix search error loop
This commit is contained in:
@@ -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.'),
|
||||
|
||||
Reference in New Issue
Block a user