Fix condition for removing empty keys in
TemplateFieldCreator
This commit is contained in:
parent
4ec6ee8fd5
commit
9c02aa5fc9
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class TemplateFieldCreator(BaseModel, ABC):
|
|||
result = self.model_dump()
|
||||
# Remove key if it is None
|
||||
for key in list(result.keys()):
|
||||
if result[key] is None or result[key] == []:
|
||||
if result[key] is None or result[key] == [] and key != "value":
|
||||
del result[key]
|
||||
result["type"] = result.pop("field_type")
|
||||
result["list"] = result.pop("is_list")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue