Skip to content

Commit 38d7cc0

Browse files
committed
fix: Fixed whitespace character parsing
1 parent 7d3e2cb commit 38d7cc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fastapi_amis_admin/crud/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
def parser_str_set_list(item_id: Union[int, str]) -> List[str]:
2424
if isinstance(item_id, int):
2525
return [str(item_id)]
26-
elif not isinstance(item_id, str):
26+
elif not isinstance(item_id, str) or not item_id:
2727
return []
2828
return list(set(item_id.split(",")))
2929

0 commit comments

Comments
 (0)