mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Return null for value format
This commit is contained in:
parent
6b2a8a3845
commit
e2d080b694
@ -103,7 +103,9 @@ def get_output_data(obj, input_data_all):
|
||||
return output, ui
|
||||
|
||||
def format_value(x):
|
||||
if isinstance(x, (int, float, bool, str)):
|
||||
if x is None:
|
||||
return None
|
||||
elif isinstance(x, (int, float, bool, str)):
|
||||
return x
|
||||
else:
|
||||
return str(x)
|
||||
|
Loading…
Reference in New Issue
Block a user