Commit 67701d7c authored by Alejandro De Maria Antolinos's avatar Alejandro De Maria Antolinos
Browse files

Merge branch 'issue_517' into 'master'

It fixes #517

Closes #517

See merge request !535
parents d8c2e4ed 7082ada3
Pipeline #51047 passed with stages
in 13 minutes and 33 seconds
...@@ -85,7 +85,11 @@ export function dateFormatter(date, format, hasIcon) { ...@@ -85,7 +85,11 @@ export function dateFormatter(date, format, hasIcon) {
} }
export function beamlineFormatter(investigation) { 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') { 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