mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-04 20:25:22 +08:00
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:
commit
9a094530d3
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue