aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/header/header.component.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/client/src/app/header/header.component.ts b/client/src/app/header/header.component.ts
index 9d2a83773..0e999fbb1 100644
--- a/client/src/app/header/header.component.ts
+++ b/client/src/app/header/header.component.ts
@@ -18,10 +18,9 @@ export class HeaderComponent implements OnInit {
18 this.router.events 18 this.router.events
19 .pipe( 19 .pipe(
20 filter(e => e instanceof NavigationEnd), 20 filter(e => e instanceof NavigationEnd),
21 map(() => getParameterByName('search', window.location.href)), 21 map(() => getParameterByName('search', window.location.href))
22 filter(searchQuery => !!searchQuery)
23 ) 22 )
24 .subscribe(searchQuery => this.searchValue = searchQuery) 23 .subscribe(searchQuery => this.searchValue = searchQuery || '')
25 } 24 }
26 25
27 doSearch () { 26 doSearch () {