CrcDataset show page errors when filesets are still being processed
NoMethodError in Hyrax::CrcDatasets#show
Showing /data/app/views/hyrax/file_sets/_actions.html.erb where line #38 raised:
undefined method `versions' for nil:NilClass
Extracted source (around line #29):
bucket = Aws::S3::Resource.new(region: ENV['S3_REGION']).bucket(file_set.parent_works.first.id)
latest_version_uri = file_set.latest_content_version.uri
file_key = "/#{file_set_id}/files/#{latest_version_uri.split("/")[-3]}/#{file_set.title.first}"
url_options = {
Trace of template inclusion: /usr/local/bundle/gems/hyrax-3.3.0/app/views/hyrax/base/_actions.html.erb, /usr/local/bundle/gems/hyrax-3.3.0/app/views/hyrax/base/_member.html.erb, app/views/hyrax/crc_datasets/_items.html.erb, app/views/hyrax/crc_datasets/show.html.erb
Application Trace
app/helpers/hyrax_helper.rb:29:in `s3_file_download_url_for_file_set'
app/views/hyrax/file_sets/_actions.html.erb:38:in `_app_views_hyrax_file_sets__actions_html_erb___1284718877360044110_898560'
app/views/hyrax/crc_datasets/_items.html.erb:18:in `_app_views_hyrax_crc_datasets__items_html_erb__3070966678332277827_898460'
app/views/hyrax/crc_datasets/show.html.erb:66:in `_app_views_hyrax_crc_datasets_show_html_erb___3892754755728553905_893400'