Skip to content

Commit 42a2360

Browse files
committed
UI: top_menu: Convert icon_url to empty str if it is None
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent 2dbc82c commit 42a2360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nc_py_api/ex_app/ui/top_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def display_name(self) -> str:
3333
@property
3434
def icon_url(self) -> str:
3535
"""Relative to the ExApp url with icon or empty value to use the default one icon."""
36-
return self._raw_data["icon_url"]
36+
return self._raw_data["icon_url"] if self._raw_data["icon_url"] else ""
3737

3838
@property
3939
def admin_required(self) -> bool:

0 commit comments

Comments
 (0)