[Fix] Update Node depth when adding new Edges to a Pathway (#384)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#384
This commit is contained in:
2026-05-12 09:40:35 +12:00
parent a2fc9f72cb
commit b39fc7eaf8
4 changed files with 54 additions and 45 deletions

View File

@ -2506,6 +2506,9 @@ def package_pathway_edges(request, package_uuid, pathway_uuid):
substrate_nodes, product_nodes, name=edge_name, description=edge_description
)
# Update depths as sideeffect of above operation
current_pathway.update_depths()
return redirect(current_pathway.url)
else: