Skip to content

Commit ca65cc1

Browse files
committed
UI: file_actions: Convert "icon" to empty str if it is None [ci skip]
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent 42a2360 commit ca65cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nc_py_api/ex_app/ui/files_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def order(self) -> int:
5353
@property
5454
def icon(self) -> str:
5555
"""-no description-."""
56-
return self._raw_data["icon"]
56+
return self._raw_data["icon"] if self._raw_data["icon"] else ""
5757

5858
@property
5959
def action_handler(self) -> str:

0 commit comments

Comments
 (0)