mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
refreshItem directly returns if the item is not currently displayed in the tree
This commit is contained in:
parent
cb87d60427
commit
111bb27f34
@ -554,6 +554,8 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
|
|||||||
} else*/
|
} else*/
|
||||||
{
|
{
|
||||||
let item = this.getNode(_id);
|
let item = this.getNode(_id);
|
||||||
|
// if the item does not exist in the tree yet no need to refresh
|
||||||
|
if(item == null) return
|
||||||
return this.handleLazyLoading(item).then((result) => {
|
return this.handleLazyLoading(item).then((result) => {
|
||||||
item.item = [...result.item]
|
item.item = [...result.item]
|
||||||
this.requestUpdate("_selectOptions")
|
this.requestUpdate("_selectOptions")
|
||||||
|
Loading…
Reference in New Issue
Block a user