Skip to content

Commit

Permalink
fix: SKFP-888 handle empty family to prevent error
Browse files Browse the repository at this point in the history
  • Loading branch information
aperron-ferlab committed Feb 15, 2024
1 parent 45998b7 commit dfe62a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/passport/thunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const extractParticipantMetaData = (participants: any[]) => {
const outcomes = participants.flatMap((participant) => toNodes(participant.outcomes));
const phenotype = participants.flatMap((participant) => toNodes(participant.phenotype));
const relation = participants.flatMap((participant) =>
toNodes(participant.family.relations_to_proband),
participant.family ? toNodes(participant.family.relations_to_proband) : '',
);

return {
Expand Down

0 comments on commit dfe62a3

Please sign in to comment.