fix None value handling

This commit is contained in:
Jakub Trllo 2025-06-11 14:35:25 +02:00
parent 05f2230f18
commit 0f56f06b2c

View file

@ -117,7 +117,9 @@ class SearchItemDisplayWidget(BaseClickableFrame):
def set_value(self, value: "str | list[str]"):
text = ""
ellide = True
if isinstance(value, str):
if value is None:
pass
elif isinstance(value, str):
text = value
elif len(value) == 1:
text = value[0]