mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 21:39:50 +08:00
Fix custom_repr assignment in instantiate_custom_component function (#1828)
This commit is contained in:
committed by
GitHub
parent
d057dc1600
commit
354a236bc7
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user