Avoid setting an empty default image

This commit is contained in:
Hadi Nategh 2022-01-31 12:17:35 +01:00
parent 8e26062854
commit c7549daa54

View File

@ -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;
}