Fix custom_repr assignment in instantiate_custom_component function (#1828)
This commit is contained in:
parent
d057dc1600
commit
354a236bc7
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ async def instantiate_custom_component(params, user_id, vertex):
|
|||
# Call the build method directly if it's sync
|
||||
build_result = custom_component.build(**params_copy)
|
||||
custom_repr = custom_component.custom_repr()
|
||||
if not custom_repr and isinstance(build_result, (dict, Record, str)):
|
||||
if custom_repr is None and isinstance(build_result, (dict, Record, str)):
|
||||
custom_repr = build_result
|
||||
if not isinstance(custom_repr, str):
|
||||
custom_repr = str(custom_repr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue