formatting
This commit is contained in:
parent
3f0b999266
commit
091ef74a75
3 changed files with 3 additions and 7 deletions
|
|
@ -246,8 +246,6 @@ 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
|
||||
)
|
||||
component_node = build_custom_component_template(component, user_id=user.id, update_field=raw_code.field)
|
||||
# Update the field
|
||||
return component_node
|
||||
|
|
|
|||
|
|
@ -29,8 +29,7 @@ from langflow.interface.vector_store.base import vectorstore_creator
|
|||
from langflow.interface.wrappers.base import wrapper_creator
|
||||
from langflow.template.field.base import TemplateField
|
||||
from langflow.template.frontend_node.constants import CLASSES_TO_REMOVE
|
||||
from langflow.template.frontend_node.custom_components import \
|
||||
CustomComponentFrontendNode
|
||||
from langflow.template.frontend_node.custom_components import CustomComponentFrontendNode
|
||||
from langflow.utils.util import get_base_classes
|
||||
from loguru import logger
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ class CustomComponentFrontendNode(FrontendNode):
|
|||
description: Optional[str] = None
|
||||
base_classes: list[str] = []
|
||||
|
||||
|
||||
def to_dict(self) -> dict:
|
||||
"""Returns a dict representation of the frontend node."""
|
||||
self.process_base_classes()
|
||||
|
|
@ -83,4 +82,4 @@ class CustomComponentFrontendNode(FrontendNode):
|
|||
"beta": self.beta,
|
||||
"error": self.error,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue