From bbc8d22abb15750558e9d7e8449a3571c410c302 Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Tue, 6 Apr 2021 15:37:29 +0200 Subject: [PATCH] fix wrong catch for unset icon --- controldeck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controldeck.py b/controldeck.py index 5ad4bff..24a4d08 100644 --- a/controldeck.py +++ b/controldeck.py @@ -224,7 +224,7 @@ def application(request): tmp += tmp_svg except Exception as e: print(f"[Error SVG]: {e}") - elif 'icon' in j and j['icon'] is not None: + elif 'icon' in j and j['icon'] != '': Button(inner_html=f"", style = color_bg + color_fg, command=j['command'], a=eval(var))