fix api when fields without name

This commit is contained in:
DocuSeal
2023-10-13 14:17:28 +03:00
parent 79f1061353
commit 3b8bb8c5bb
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ module Submitters
end
def build_fields_index(fields)
fields.index_by { |e| e['name'] }.merge(fields.index_by { |e| e['name'].parameterize.underscore })
fields.index_by { |e| e['name'] }.merge(fields.index_by { |e| e['name'].to_s.parameterize.underscore })
end
def normalize_attachment_value(value, account)