fix normalize values when nil

This commit is contained in:
Pete Matsyburka
2024-01-24 10:05:14 +02:00
parent 80c1b04e83
commit 0e9d922204
+1 -1
View File
@@ -26,7 +26,7 @@ module Submitters
next if key.blank?
if fields_uuid_index[key]['type'].in?(%w[initials signature image file])
if fields_uuid_index[key]['type'].in?(%w[initials signature image file]) && value.present?
new_value, new_attachments = normalize_attachment_value(value, template.account, for_submitter)
attachments.push(*new_attachments)