Commit 7082ada3 authored by Alejandro De Maria Antolinos's avatar Alejandro De Maria Antolinos
Browse files

It fixes #517

parent d8c2e4ed
Pipeline #51043 passed with stage
in 3 minutes and 33 seconds
......@@ -85,7 +85,11 @@ export function dateFormatter(date, format, hasIcon) {
}
export function beamlineFormatter(investigation) {
return (investigation?.instrument.name || '').toUpperCase();
try {
return (investigation?.instrument?.name || '').toUpperCase();
} catch {
return 'No instrument found';
}
}
export function nameFormatter(investigation, showLink, section = 'datasets') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment