diff --git a/packages/datagateway-dataview/src/page/breadcrumbs.component.tsx b/packages/datagateway-dataview/src/page/breadcrumbs.component.tsx index 00567410f..569d72ea2 100644 --- a/packages/datagateway-dataview/src/page/breadcrumbs.component.tsx +++ b/packages/datagateway-dataview/src/page/breadcrumbs.component.tsx @@ -71,7 +71,7 @@ const fetchEntityInformation = async ( }) .then((response) => { // Return the property in the data received. - return response.data[entityField]; + return response.data[entityField] ?? response.data['name']; }); return entityName; @@ -116,8 +116,10 @@ const useEntityInformation = ( entity === 'investigation' ? 'title' : entity === 'dataPublication' - ? 'title' - : 'name'; + ? 'title' + : entity === 'instrument' + ? 'fullName' + : 'name'; // this is the field we use to lookup the relevant entity in ICAT - it's usually ID // but for DLS proposals this will be name diff --git a/packages/datagateway-dataview/src/views/landing/isis/isisInvestigationLanding.component.tsx b/packages/datagateway-dataview/src/views/landing/isis/isisInvestigationLanding.component.tsx index c65d1f26d..3b057b7ef 100644 --- a/packages/datagateway-dataview/src/views/landing/isis/isisInvestigationLanding.component.tsx +++ b/packages/datagateway-dataview/src/views/landing/isis/isisInvestigationLanding.component.tsx @@ -293,7 +293,9 @@ const CommonLandingPage = ( icon: , }, { - content: () => data.investigationInstruments?.[0]?.instrument?.name, + content: () => + data.investigationInstruments?.[0]?.instrument?.fullName ?? + data.investigationInstruments?.[0]?.instrument?.name, label: t('investigations.instrument'), icon: , },