Skip to content

Commit

Permalink
nit #11570
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Nov 12, 2024
1 parent b6c6a8d commit e1b497f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions arches/app/models/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2430,7 +2430,6 @@ def update_from_editable_future_graph(self):
raise Exception(_("No identifiable future Graph"))

with transaction.atomic():
foo = JSONDeserializer().deserialize(JSONSerializer().serialize(self))
serialized_editiable_future_graph = JSONDeserializer().deserialize(
JSONSerializer().serialize(editable_future_graph)
)
Expand Down Expand Up @@ -2535,9 +2534,9 @@ def update_from_editable_future_graph(self):
serialized_editiable_future_graph["root"]["source_identifier_id"] = None

serialized_editiable_future_graph["has_unpublished_changes"] = False
serialized_editiable_future_graph["resource_instance_lifecycle_id"] = foo[
"resource_instance_lifecycle_id"
]
serialized_editiable_future_graph["resource_instance_lifecycle_id"] = str(
self.resource_instance_lifecycle_id
)
serialized_editiable_future_graph["source_identifier_id"] = None
serialized_editiable_future_graph["graphid"] = str(self.pk)

Expand Down

0 comments on commit e1b497f

Please sign in to comment.