Merge pull request #8848 from andrej-scinote/aj_SCI_12326

Fix the error removing the last item from the item form block  [SCI-12326]
This commit is contained in:
andrej-scinote 2025-09-03 15:11:00 +02:00 committed by GitHub
commit 9a094530d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@ class FormFieldValueSerializer < ActiveModel::Serializer
def value
if object.type == 'FormRepositoryRowsFieldValue'
object.value.map do |value|
object.value&.map do |value|
row_code = "#{RepositoryRow::ID_PREFIX}#{value['id']}"
repository = Repository.find_by(id: value['repository_id'])