fix normalize values when nil

pull/217/head
Pete Matsyburka 2 years ago
parent 80c1b04e83
commit 0e9d922204

@ -26,7 +26,7 @@ module Submitters
next if key.blank? 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) new_value, new_attachments = normalize_attachment_value(value, template.account, for_submitter)
attachments.push(*new_attachments) attachments.push(*new_attachments)

Loading…
Cancel
Save