Skip to content

Commit

Permalink
fix (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
adipaul1981 authored Apr 19, 2022
1 parent bbaefb5 commit b56c1da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reports/family-clinical-data/generateFamilySqon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default async (
const newSqon = await resolveSetsInSqon(sqon, userId, accessToken);
const query = buildQuery({ nestedFields, filters: newSqon });

const participantIds = (sqon.content || []).filter(e => (e.content?.field || '') === 'participant_id')[0].content
.value;
const participantIds =
(sqon.content || []).filter(e => (e.content?.field || '') === 'participant_id')[0]?.content.value || [];

const field = program.toLowerCase() === ProjectType.include ? 'family.family_id' : 'family_id';
const esRequest = {
Expand Down

0 comments on commit b56c1da

Please sign in to comment.