seek icon indicating copy to clipboard operation
seek copied to clipboard

Undefined method 'title' in app/views/assays/show.html.erb

Open kdp-cloud opened this issue 11 months ago • 1 comments

Error in rendering the child assays.

An ActionView::Template::Error occurred in assays#show:

  undefined method `title' for nil:NilClass
  app/views/assays/show.html.erb:89

kdp-cloud avatar Mar 25 '24 09:03 kdp-cloud

In case of an ISA JSON conpliant assay, the assay metadata shows either:

  • 'Child assays' in case the assay is of type 'assay stream' image

  • 'Assay stream' in case the assay is of type 'experimental' image

In the rare case of (older?) orphaned ISA-JSON compliant assays, there is no assay stream linked to it, which results in an error when trying to fetch its title. In case the assay stream can't be found, the application should not try to put a link to the assay stream. image

kdp-cloud avatar Mar 25 '24 12:03 kdp-cloud