Skip to content

Commit

Permalink
ENCD-6126--add-element-ref-to-file-details
Browse files Browse the repository at this point in the history
  • Loading branch information
zoldello committed Aug 27, 2021
1 parent a8667ed commit 039feef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/encoded/static/components/filegallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,13 @@ export class FileTable extends React.Component {
return analysisObjectsAccession || nonAnalysisObjectPrefix;
});

const elementsReferences = context.elements_references;

if (elementsReferences) {
const elementsReferenceFiles = elementsReferences.map((elementsReference) => elementsReference.files).reduce((acc, val) => acc.concat(val), []);
files.ref?.concat(elementsReferenceFiles);
}

// Get unique analyses for series object
const analysesSeries = files.series ? [...new Set(files.series.map((a) => (a.analyses && a.analyses.length > 0 ? a.analyses[0] : '')).filter((a) => a !== ''))] : [];

Expand Down

0 comments on commit 039feef

Please sign in to comment.