mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 07:49:28 +01:00
Api: Fix Et2LinkSearch initialization with value failed, giving blank widget
This commit is contained in:
parent
a61445c0d0
commit
df9ec35704
@ -53,7 +53,7 @@ export class Et2LinkSearch extends Et2Select
|
||||
|
||||
get _appNode() : Et2LinkAppSelect
|
||||
{
|
||||
return this.parentNode.querySelector("et2-link-apps");
|
||||
return this.parentNode?.querySelector("et2-link-apps");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -65,7 +65,7 @@ export class Et2LinkSearch extends Et2Select
|
||||
|
||||
protected remoteQuery(search : string, options : object)
|
||||
{
|
||||
let request = this.egw().request(this.searchUrl, [this._appNode.value, '', search, options]);
|
||||
let request = this.egw().request(this.searchUrl, [this._appNode?.value ?? options.app, '', search, options]);
|
||||
if(this.query && typeof this.query == "function")
|
||||
{
|
||||
if(!this.query(request, this))
|
||||
|
Loading…
Reference in New Issue
Block a user