Skip to content

Commit

Permalink
fix multiple save in gropius backend
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-coding committed Dec 12, 2024
1 parent fcf8d51 commit 344c1da
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ComponentService(
val updateContext = NodeBatchUpdateContext()
input.versions.ifPresent { inputs ->
savedComponent.versions() += inputs.map {
componentVersionService.createComponentVersion(component, it, updateContext)
componentVersionService.createComponentVersion(savedComponent, it, updateContext)
}
}
return updateContext.save(savedComponent, nodeRepository)
Expand Down
Loading

0 comments on commit 344c1da

Please sign in to comment.