fix et2-link shows ?? for no or empty value

This commit is contained in:
ralf 2022-06-09 23:05:55 +02:00
parent 240f79efbf
commit 0105124a7d

View File

@ -266,7 +266,7 @@ export class Et2Link extends ExposeMixin<Et2Widget>(Et2Widget(LitElement)) imple
super.requestUpdate();
if(changedProperties.has("app") || changedProperties.has("entry_id"))
{
if(!this.app || !this.entry_id || (this.app && this.entry_id && !this._title))
if(this.app && this.entry_id && !this._title)
{
this._title = Et2Link.MISSING_TITLE;
}
@ -343,4 +343,4 @@ export interface LinkInfo
download_url? : string,
target? : string,
mode? : number
}
}