aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/header
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-02-18 14:33:07 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-02-18 14:33:07 +0100
commit71e75ef27e8f993eaafc73896ac6f22fe91df64a (patch)
treed5e309d62580e72521f4ddad4f683b12a5d0a067 /client/src/app/header
parent757ffdfe901fddc34c311e3b45689e09a4055aa5 (diff)
downloadPeerTube-71e75ef27e8f993eaafc73896ac6f22fe91df64a.tar.gz
PeerTube-71e75ef27e8f993eaafc73896ac6f22fe91df64a.tar.zst
PeerTube-71e75ef27e8f993eaafc73896ac6f22fe91df64a.zip
Fix search parameter initialisation for search-typeahead
Diffstat (limited to 'client/src/app/header')
-rw-r--r--client/src/app/header/search-typeahead.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/header/search-typeahead.component.ts b/client/src/app/header/search-typeahead.component.ts
index 372601fa8..396a875c8 100644
--- a/client/src/app/header/search-typeahead.component.ts
+++ b/client/src/app/header/search-typeahead.component.ts
@@ -35,9 +35,9 @@ export class SearchTypeaheadComponent implements OnInit, OnDestroy {
35 ) {} 35 ) {}
36 36
37 ngOnInit () { 37 ngOnInit () {
38 const query = this.route.snapshot.queryParams 38 this.route.queryParams
39 if (query['search']) this.search = query['search'] 39 .pipe(first(params => params.search !== undefined && params.search !== null))
40 40 .subscribe(params => this.search = params.search)
41 this.serverService.getConfig() 41 this.serverService.getConfig()
42 .subscribe(config => this.serverConfig = config) 42 .subscribe(config => this.serverConfig = config)
43 } 43 }