Skip to content

Commit

Permalink
fix: incorrect expression
Browse files Browse the repository at this point in the history
  • Loading branch information
superskip committed Aug 24, 2023
1 parent 9b0cd40 commit 8ea6206
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import { getSearchFormId } from '../getSearchFormId';
import type { QuerySingleResource } from '../../../utils/api/api.types';

const getOuQueryArgs = (orgUnit: ?Object, orgUnitScope: string) =>
(orgUnitScope !== 'ACCESSIBLE' || 'CAPTURE' || 'ALL' ?
{ ou: orgUnit && orgUnit.id, ouMode: orgUnitScope } :
{ ouMode: orgUnitScope });
(['ACCESSIBLE', 'CAPTURE', 'ALL'].includes(orgUnitScope) ?
{ ouMode: orgUnitScope } :
{ ou: orgUnit && orgUnit.id, ouMode: orgUnitScope });

const getContextQueryArgs = (programId: ?string, trackedEntityTypeId: string) =>
(programId ? { program: programId } : { trackedEntityType: trackedEntityTypeId });
Expand Down

0 comments on commit 8ea6206

Please sign in to comment.