mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix None value handling
This commit is contained in:
parent
05f2230f18
commit
0f56f06b2c
1 changed files with 3 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue