Fix string representation of BaseModel in CustomComponent
This commit is contained in:
parent
a35223c23f
commit
060ff20cdc
1 changed files with 2 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue