diff --git a/packages/sections/src/evidence/Gene2Phenotype/Body.jsx b/packages/sections/src/evidence/Gene2Phenotype/Body.jsx index 5784c2b9b..fb8940ffa 100644 --- a/packages/sections/src/evidence/Gene2Phenotype/Body.jsx +++ b/packages/sections/src/evidence/Gene2Phenotype/Body.jsx @@ -51,7 +51,7 @@ const getColumns = (label) => [ naLabel ), filterValue: ({ variantFunctionalConsequence }) => - sentenceCase(variantFunctionalConsequence.label), + sentenceCase(variantFunctionalConsequence?.label), }, { id: "allelicRequirements", diff --git a/packages/sections/src/evidence/Impc/Body.jsx b/packages/sections/src/evidence/Impc/Body.jsx index 0764ea143..bca243ea9 100644 --- a/packages/sections/src/evidence/Impc/Body.jsx +++ b/packages/sections/src/evidence/Impc/Body.jsx @@ -63,7 +63,7 @@ const columns = [ ); }, filterValue: ({ diseaseModelAssociatedHumanPhenotypes = [] }) => - diseaseModelAssociatedHumanPhenotypes.map((dmahp) => dmahp.label).join(), + diseaseModelAssociatedHumanPhenotypes?.map((dmahp) => dmahp.label).join(), }, { id: "diseaseModelAssociatedModelPhenotypes", diff --git a/packages/sections/src/evidence/Orphanet/Body.jsx b/packages/sections/src/evidence/Orphanet/Body.jsx index 02592c3dd..e67307cb8 100644 --- a/packages/sections/src/evidence/Orphanet/Body.jsx +++ b/packages/sections/src/evidence/Orphanet/Body.jsx @@ -59,7 +59,7 @@ const getColumns = (label) => [ naLabel ), filterValue: ({ variantFunctionalConsequence }) => - sentenceCase(variantFunctionalConsequence.label), + sentenceCase(variantFunctionalConsequence?.label), }, { id: "alleleOrigins", diff --git a/packages/sections/src/evidence/Reactome/Body.jsx b/packages/sections/src/evidence/Reactome/Body.jsx index 3704d3a9f..9ea0bb6cf 100644 --- a/packages/sections/src/evidence/Reactome/Body.jsx +++ b/packages/sections/src/evidence/Reactome/Body.jsx @@ -107,7 +107,7 @@ const getColumns = (label) => [ { filterValue: ({ variantAminoacidDescriptions }) => variantAminoacidDescriptions - .map((variantAminoacidDescription) => variantAminoacidDescription) + ?.map((variantAminoacidDescription) => variantAminoacidDescription) .join(), label: "Amino acid variation", renderCell: ({ variantAminoacidDescriptions }) => { diff --git a/packages/sections/src/target/Safety/SafetyTable.jsx b/packages/sections/src/target/Safety/SafetyTable.jsx index 81b40b832..1f00f73d1 100644 --- a/packages/sections/src/target/Safety/SafetyTable.jsx +++ b/packages/sections/src/target/Safety/SafetyTable.jsx @@ -51,7 +51,7 @@ function getColumns(classes) { id: "biosamples", label: "Biosystems", filterValue: ({ biosamples }) => { - if (biosamples.length === 1) { + if (biosamples?.length === 1) { const sample = biosamples[0]; return `${sample.cellFormat} ${sample.cellLabel} ${sample.tissueLabel}`.trim(); }