diff options
-rw-r--r-- | client/src/app/header/search-typeahead.component.ts | 6 | ||||
-rw-r--r-- | client/src/app/shared/misc/list-overflow.component.scss | 2 |
2 files changed, 4 insertions, 4 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 | } |
diff --git a/client/src/app/shared/misc/list-overflow.component.scss b/client/src/app/shared/misc/list-overflow.component.scss index e26100aca..1e5fe4c10 100644 --- a/client/src/app/shared/misc/list-overflow.component.scss +++ b/client/src/app/shared/misc/list-overflow.component.scss | |||
@@ -10,7 +10,7 @@ | |||
10 | 10 | ||
11 | .list-overflow-menu { | 11 | .list-overflow-menu { |
12 | position: absolute; | 12 | position: absolute; |
13 | right: 0; | 13 | right: 25px; |
14 | } | 14 | } |
15 | 15 | ||
16 | button { | 16 | button { |