Fix string representation of BaseModel in CustomComponent

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-25 23:47:50 -03:00
commit 060ff20cdc

View file

@ -121,6 +121,8 @@ class CustomComponent(Component):
return yaml.dump(self.repr_value)
if isinstance(self.repr_value, str):
return self.repr_value
if isinstance(self.repr_value, BaseModel) and not isinstance(self.repr_value, Record):
return str(self.repr_value)
return self.repr_value
def build_config(self):