From 0105124a7d624fd30696edc8a2d0c6938c2f68b9 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 9 Jun 2022 23:05:55 +0200 Subject: [PATCH] fix et2-link shows ?? for no or empty value --- api/js/etemplate/Et2Link/Et2Link.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Link/Et2Link.ts b/api/js/etemplate/Et2Link/Et2Link.ts index 9016aed435..c88a6832f1 100644 --- a/api/js/etemplate/Et2Link/Et2Link.ts +++ b/api/js/etemplate/Et2Link/Et2Link.ts @@ -266,7 +266,7 @@ export class Et2Link extends ExposeMixin(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 -} +} \ No newline at end of file