Skip to content

Commit

Permalink
bugfix: delete layouts of relation when relation is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-coding committed Sep 9, 2024
1 parent aa29212 commit 4d95fee
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class ComponentGraphUpdater(updateContext: NodeBatchUpdater = NodeBatchUpdateCon
lockIncomingAndOutgoingRelationPartners(relation.start(cache).value)
lockIncomingAndOutgoingRelationPartners(relation.end(cache).value)
deletedNodes += relation
deletedNodes += relation.layouts(cache)
val startNode = relation.start(cache).value
startNode.outgoingRelations(cache) -= relation
relation.end(cache).value.incomingRelations(cache) -= relation
Expand Down

0 comments on commit 4d95fee

Please sign in to comment.