refactor: Improve handling of repr_value in CustomComponent
This commit is contained in:
parent
46cd83ab46
commit
6f7efd01f2
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ async def build_custom_component(params: dict, custom_component: "CustomComponen
|
|||
if raw is None and isinstance(build_result, (dict, Data, str)):
|
||||
raw = build_result.data if isinstance(build_result, Data) else build_result
|
||||
|
||||
artifact_type = get_artifact_type(custom_component or raw, build_result)
|
||||
artifact_type = get_artifact_type(custom_component.repr_value or raw, build_result)
|
||||
raw = post_process_raw(raw, artifact_type)
|
||||
artifact = {"repr": custom_repr, "raw": raw, "type": artifact_type}
|
||||
return custom_component, build_result, artifact
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue