Skip to content

Commit

Permalink
nit re: future graphs re #11613
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Nov 14, 2024
1 parent 13d1c49 commit a9b2f32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arches/app/models/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2654,16 +2654,15 @@ def _update_source_nodegroup_hierarchy(nodegroup):
setattr(source_node, key, getattr(future_node, key))

source_node.nodegroup_id = future_node.nodegroup_id
source_node.grouping_node_id = source_node.nodegroup_id
if (
future_node_nodegroup_node
and future_node_nodegroup_node.source_identifier_id
):
source_node.nodegroup_id = (
future_node_nodegroup_node.source_identifier_id
)
source_node.grouping_node_id = (
future_card_nodegroup_node.source_identifier_id
)
source_node.grouping_node_id = source_node.nodegroup_id

self.nodes[source_node.pk] = source_node
else: # newly-created node
Expand All @@ -2677,6 +2676,7 @@ def _update_source_nodegroup_hierarchy(nodegroup):
future_node.nodegroup_id = (
future_node_nodegroup_node.source_identifier_id
)
future_node.grouping_node_id = future_node.nodegroup_id

del editable_future_graph.nodes[future_node.pk]
self.nodes[future_node.pk] = future_node
Expand Down

0 comments on commit a9b2f32

Please sign in to comment.