From c7549daa54333ea687993285732e64ae29004b6e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 31 Jan 2022 12:17:35 +0100 Subject: [PATCH] Avoid setting an empty default image --- api/js/etemplate/Et2Button/Et2Button.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Button/Et2Button.ts b/api/js/etemplate/Et2Button/Et2Button.ts index fa1af545ed..af32982aaf 100644 --- a/api/js/etemplate/Et2Button/Et2Button.ts +++ b/api/js/etemplate/Et2Button/Et2Button.ts @@ -185,7 +185,7 @@ export class Et2Button extends Et2InputWidget(SlotMixin(LionButton)) if(!this.image) { let image = this._get_default_image(this._widget_id); - if(image != this._image) + if(image && image != this._image) { this.image = image; }