From dfe62a3deabd9cd2566099efd459ae80b3ccd0ad Mon Sep 17 00:00:00 2001 From: Alek Perron Date: Wed, 14 Feb 2024 09:16:03 -0500 Subject: [PATCH] fix: SKFP-888 handle empty family to prevent error --- src/store/passport/thunks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/passport/thunks.ts b/src/store/passport/thunks.ts index 0ef66d073..167d3fad1 100644 --- a/src/store/passport/thunks.ts +++ b/src/store/passport/thunks.ts @@ -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 {