🐛 fix(custom_component.py): fix custom_repr method to return a string representation of repr_value

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-27 09:55:48 -03:00
commit 28bf88cf79

View file

@ -23,7 +23,7 @@ class CustomComponent(Component, extra=Extra.allow):
super().__init__(**data)
def custom_repr(self):
return self.repr_value
return str(self.repr_value)
def build_config(self):
return self.field_config