Return null for value format

This commit is contained in:
space-nuko 2023-05-25 13:07:51 -05:00
parent 6b2a8a3845
commit e2d080b694
1 changed files with 3 additions and 1 deletions

View File

@ -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)