File tree Expand file tree Collapse file tree
js/components/preview/molecule/observationCmpView Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1334,7 +1334,7 @@ const ObservationCmpView = memo(
13341334 // name: "nonsense-34"
13351335 // type: "nonsense_id"
13361336 // url: null
1337- const searchedIdentifier = mainObservation . identifiers . find (
1337+ const searchedIdentifier = mainObservation ? .identifiers . find (
13381338 identifier => identifier . type === preferredIdentifierType
13391339 ) ;
13401340 if ( searchedIdentifier ) {
@@ -1403,7 +1403,7 @@ const ObservationCmpView = memo(
14031403 </ Tooltip >
14041404 { aliasOrder ?. map ( ( alias , index ) => {
14051405 const compoundCode =
1406- mainObservation . identifiers . find ( identifier => identifier . type === alias ) ?. name ?? '' ;
1406+ mainObservation ? .identifiers . find ( identifier => identifier . type === alias ) ?. name ?? '' ;
14071407 return (
14081408 < Tooltip key = { index } title = { `Click to copy value of ${ alias } ` } >
14091409 < TableRow
You can’t perform that action at this time.
0 commit comments