mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Et2LinkSearch: Avoid error if title couldn't be found
This commit is contained in:
parent
b88ce18639
commit
fb94a47df1
@ -114,7 +114,7 @@ export class Et2LinkSearch extends Et2Select
|
||||
this.select_options = Object.assign([option], this.__select_options);
|
||||
this.egw()?.link_title(this.app, option.value, true).then(title =>
|
||||
{
|
||||
option.label = title;
|
||||
option.label = title || Et2Link.MISSING_TITLE;
|
||||
option.class = "";
|
||||
// It's probably already been rendered, find the item
|
||||
let item = this.getItems().find(i => i.value === option.value);
|
||||
|
Loading…
Reference in New Issue
Block a user