Fix search parameter initialisation for search-typeahead
This commit is contained in:
parent
757ffdfe90
commit
71e75ef27e
|
@ -35,9 +35,9 @@ export class SearchTypeaheadComponent implements OnInit, OnDestroy {
|
|||
) {}
|
||||
|
||||
ngOnInit () {
|
||||
const query = this.route.snapshot.queryParams
|
||||
if (query['search']) this.search = query['search']
|
||||
|
||||
this.route.queryParams
|
||||
.pipe(first(params => params.search !== undefined && params.search !== null))
|
||||
.subscribe(params => this.search = params.search)
|
||||
this.serverService.getConfig()
|
||||
.subscribe(config => this.serverConfig = config)
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
.list-overflow-menu {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
right: 25px;
|
||||
}
|
||||
|
||||
button {
|
||||
|
|
Loading…
Reference in New Issue