Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ICAT
Datahub
Commits
7082ada3
Commit
7082ada3
authored
Jul 22, 2021
by
Alejandro De Maria Antolinos
Browse files
It fixes
#517
parent
d8c2e4ed
Pipeline
#51043
passed with stage
in 3 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/Investigation/utils.js
View file @
7082ada3
...
...
@@ -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
'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment