diff --git a/frontend/components/Viewing/MetadataInfo.js b/frontend/components/Viewing/MetadataInfo.js index ae6a3216..3ad084dd 100644 --- a/frontend/components/Viewing/MetadataInfo.js +++ b/frontend/components/Viewing/MetadataInfo.js @@ -25,14 +25,16 @@ export default function MetadataInfo({ title, link, label, icon, specific, uri } if (Array.isArray(title) && label === 'Type' || label === 'Role') { const concatenatedTitle = title.map(item => { // Accessing the extra_work property for each object in the title array - if (item.props && item.props.sections && item.props.sections.extra_work && - item.props.sections.extra_work.length > 0) { - return item.props.sections.extra_work[0].result.extra_work; + if (item.props && item.props.children && item.props.children.props.children.props.sections && + item.props.children.props.children.props.sections.extra_work && + item.props.children.props.children.props.sections.extra_work.length > 0) { + return item.props.children.props.children.props.sections.extra_work[0].result.extra_work; } return ''; // Return an empty string if the path doesn't exist }).filter(item => item !== '').join(", "); // Filter out empty strings and join [title, link] = formatMultipleTitles(concatenatedTitle); } + if (Array.isArray(title) && label === 'Sequence') { const concatenatedTitle = title.map(item => { // Accessing the extra_work property for each object in the title array diff --git a/frontend/public/commitHash.txt b/frontend/public/commitHash.txt index 82a2091d..e5df4d5a 100644 --- a/frontend/public/commitHash.txt +++ b/frontend/public/commitHash.txt @@ -1 +1 @@ -6238315c3165b4b56b39662e692e283f325ee006 \ No newline at end of file +4b214d663d2a8faf784303aee3e886818e3c73e8 \ No newline at end of file