🐛 fix(custom_component.py): fix custom_repr method to return a string representation of repr_value
This commit is contained in:
parent
3baa3a1ca5
commit
28bf88cf79
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class CustomComponent(Component, extra=Extra.allow):
|
||||||
super().__init__(**data)
|
super().__init__(**data)
|
||||||
|
|
||||||
def custom_repr(self):
|
def custom_repr(self):
|
||||||
return self.repr_value
|
return str(self.repr_value)
|
||||||
|
|
||||||
def build_config(self):
|
def build_config(self):
|
||||||
return self.field_config
|
return self.field_config
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue