Skip to content

Commit

Permalink
null check for widget search added
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmehta committed Oct 17, 2023
1 parent 6781991 commit fc65c7f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/sections/src/evidence/Gene2Phenotype/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const getColumns = (label) => [
naLabel
),
filterValue: ({ variantFunctionalConsequence }) =>
sentenceCase(variantFunctionalConsequence.label),
sentenceCase(variantFunctionalConsequence?.label),
},
{
id: "allelicRequirements",
Expand Down
2 changes: 1 addition & 1 deletion packages/sections/src/evidence/Impc/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const columns = [
);
},
filterValue: ({ diseaseModelAssociatedHumanPhenotypes = [] }) =>
diseaseModelAssociatedHumanPhenotypes.map((dmahp) => dmahp.label).join(),
diseaseModelAssociatedHumanPhenotypes?.map((dmahp) => dmahp.label).join(),
},
{
id: "diseaseModelAssociatedModelPhenotypes",
Expand Down
2 changes: 1 addition & 1 deletion packages/sections/src/evidence/Orphanet/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const getColumns = (label) => [
naLabel
),
filterValue: ({ variantFunctionalConsequence }) =>
sentenceCase(variantFunctionalConsequence.label),
sentenceCase(variantFunctionalConsequence?.label),
},
{
id: "alleleOrigins",
Expand Down
2 changes: 1 addition & 1 deletion packages/sections/src/evidence/Reactome/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const getColumns = (label) => [
{
filterValue: ({ variantAminoacidDescriptions }) =>
variantAminoacidDescriptions
.map((variantAminoacidDescription) => variantAminoacidDescription)
?.map((variantAminoacidDescription) => variantAminoacidDescription)
.join(),
label: "Amino acid variation",
renderCell: ({ variantAminoacidDescriptions }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/sections/src/target/Safety/SafetyTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit fc65c7f

Please sign in to comment.