Skip to content

Commit

Permalink
dont show participants with null site ids
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Dec 13, 2024
1 parent 0f5a7e7 commit 186490d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/services/participantsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ export const getAttachedSiteIDs = async (): Promise<SiteIdType[]> => {
};

export const getAllParticipants = async (): Promise<Participant[]> => {
return Participant.query().withGraphFetched('[apiRoles, approver, types, users]');
return Participant.query()
.whereNotNull('siteId')
.withGraphFetched('[apiRoles, approver, types, users]');
};

export const getParticipantsBySiteIds = async (siteIds: number[]) => {
Expand Down

0 comments on commit 186490d

Please sign in to comment.