Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: assign frozen flag from group to node correctly #2867

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/backend/base/langflow/graph/graph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,7 @@ async def build_vertex(
self.run_manager.add_to_vertices_being_run(vertex_id)
try:
params = ""
parent_vertex = self.get_vertex(vertex.parent_node_id) if vertex.parent_node_id else None
if vertex.frozen or (parent_vertex and parent_vertex.frozen):
if vertex.frozen:
# Check the cache for the vertex
cached_result = await chat_service.get_cache(key=vertex.id)
if isinstance(cached_result, CacheMiss):
Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/langflow/graph/graph/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def add_frozen(nodes, frozen):
This function receives a list of nodes and adds a frozen to each node.
"""
for node in nodes:
node["frozen"] = frozen
node["data"]["node"]["frozen"] = frozen


def ungroup_node(group_node_data, base_flow):
Expand Down
Loading