Skip to content

Commit

Permalink
Fixed bug when a ref organ isn't paired
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Mar 28, 2024
1 parent ec6a36e commit f376312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/normalization/normalize-ref-organ.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function getOrganName(nodeId, crosswalk) {

function getOrganLabel({sex, side}, nodeLabel) {
const organOwnerSex = sex.toLowerCase();
const organSide = side.toLowerCase();
const organSide = side?.toLowerCase();
let organLabel = `${organOwnerSex} ${nodeLabel}`.trim();
if (organSide && !organLabel.includes(organSide)) {
organLabel = `${organOwnerSex} ${organSide} ${nodeLabel}`.trim();
Expand Down

0 comments on commit f376312

Please sign in to comment.