Skip to content

Commit

Permalink
fix file link generation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBTurchyn committed Feb 20, 2024
1 parent 984df15 commit 4eb4e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/submissions/generate_export_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def submitter_formatted_fields(submitter)
ActiveStorage::Blob.proxy_url(attachment.blob) if attachment
elsif template_field_type == 'file'
Array.wrap(submitter_value).compact_blank.filter_map do |e|
attachment = attachments_index[e]&.url
attachment = attachments_index[e]
ActiveStorage::Blob.proxy_url(attachment.blob) if attachment
end
else
Expand Down

0 comments on commit 4eb4e8c

Please sign in to comment.