Skip to content

Commit

Permalink
bugfix: save layout correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-coding committed Sep 8, 2024
1 parent 31c56da commit b22c277
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class LayoutService(
val newLayout = RelationPartnerLayout(it.layout.pos.x, it.layout.pos.y)
newLayout.relationPartner(cache).value = relationPartnerRepository.findById(it.relationPartner)
batchUpdater.internalUpdatedNodes += newLayout
layout.relationPartnerLayouts() += newLayout
} else {
existingLayout.x = it.layout.pos.x
existingLayout.y = it.layout.pos.y
Expand Down Expand Up @@ -89,6 +90,7 @@ class LayoutService(
val newLayout = RelationLayout(xCoordinates, yCoordinates)
newLayout.relation(cache).value = relationRepository.findById(it.relation)
batchUpdater.internalUpdatedNodes += newLayout
layout.relationLayouts() += newLayout
} else {
existingLayout.xCoordinates = xCoordinates
existingLayout.yCoordinates = yCoordinates
Expand Down

0 comments on commit b22c277

Please sign in to comment.