From 67fc507a960eec2ae134a5b7c27332680fa3df00 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 9 Dec 2023 23:37:32 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20refactor(endpoints.py):=20remove?= =?UTF-8?q?=20unnecessary=20'nameless'=20parameter=20from=20build=5Fcustom?= =?UTF-8?q?=5Fcomponent=5Ftemplate=20function=20calls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/endpoints.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/langflow/api/v1/endpoints.py b/src/backend/langflow/api/v1/endpoints.py index eb5dba63b..c73de7490 100644 --- a/src/backend/langflow/api/v1/endpoints.py +++ b/src/backend/langflow/api/v1/endpoints.py @@ -216,7 +216,7 @@ async def custom_component( ): component = create_and_validate_component(raw_code.code) - built_frontend_node = build_custom_component_template(component, user_id=user.id, nameless=True) + built_frontend_node = build_custom_component_template(component, user_id=user.id) built_frontend_node = update_frontend_node_with_template_values(built_frontend_node, raw_code) return built_frontend_node @@ -234,7 +234,7 @@ async def reload_custom_component(path: str, user: User = Depends(get_current_ac extractor = CustomComponent(code=content) extractor.validate() - return build_custom_component_template(extractor, user_id=user.id, nameless=True) + return build_custom_component_template(extractor, user_id=user.id) except Exception as exc: raise HTTPException(status_code=400, detail=str(exc)) @@ -247,7 +247,7 @@ async def custom_component_update( component = create_and_validate_component(raw_code.code) component_node = build_custom_component_template( - component, user_id=user.id, update_field=raw_code.field, nameless=True + component, user_id=user.id, update_field=raw_code.field ) # Update the field return component_node