diff --git a/lib/concepts/project/operations/update.rb b/lib/concepts/project/operations/update.rb index 860f3cb0f..20c8007e5 100644 --- a/lib/concepts/project/operations/update.rb +++ b/lib/concepts/project/operations/update.rb @@ -83,8 +83,8 @@ def persist_changes(response) return if response.failure? ActiveRecord::Base.transaction do - response[:project].save! response[:project].components.where(id: response[:component_ids_to_delete]).destroy_all + response[:project].save! end end end