Skip to content

Commit

Permalink
chore: missing checks
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Oct 30, 2024
1 parent 3d7c44a commit 2983a56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import { errorCreator } from 'capture-core-utils';
import { ofType } from 'redux-observable';
import { concatMap, filter, takeUntil } from 'rxjs/operators';
import {
workingListsCommonActionTypes,
addTemplateSuccess,
addTemplateError,
deleteTemplateSuccess,
addTemplateSuccess,
deleteTemplateError,
updateTemplateSuccess,
updateTemplateError,
deleteTemplateSuccess,
updateDefaultTemplate,
updateTemplateError,
updateTemplateSuccess,
workingListsCommonActionTypes,
workingListsCommonActionTypesBatchActionTypes,
} from '../../../WorkingListsCommon';
import { TEI_WORKING_LISTS_TYPE } from '../../constants';
Expand Down Expand Up @@ -63,7 +63,7 @@ export const addProgramStageTemplateEpic = (action$: InputObservable, store: Red
eventStatus: status,
...(assignedUserMode && { assignedUserMode }),
...(assignedUsers?.length > 0 && { assignedUsers }),
...(followUp && { followUp }),
...(followUp !== undefined && { followUp: JSON.stringify(followUp) }),
...(programStatus && { enrollmentStatus: programStatus }),
...(occurredAt && { enrollmentOccurredAt: occurredAt }),
...(eventOccurredAt && { eventOccurredAt }),
Expand Down Expand Up @@ -212,7 +212,7 @@ export const updateProgramStageTemplateEpic = (action$: InputObservable, store:
...(assignedUsers?.length > 0 && { assignedUsers }),
...(programStatus && { enrollmentStatus: programStatus }),
...(occurredAt && { enrollmentOccurredAt: occurredAt }),
...(followUp && { followUp }),
...(followUp !== undefined && { followUp: JSON.stringify(followUp) }),
...(eventOccurredAt && { eventOccurredAt }),
...(scheduledAt && { eventScheduledAt: scheduledAt }),
attributeValueFilters,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ export const updateTEITemplateEpic = (action$: InputObservable, store: ReduxStor
order,
...(assignedUserMode && { assignedUserMode }),
...(assignedUsers?.length > 0 && { assignedUsers }),
...(followUp !== undefined && { followUp: JSON.stringify(followUp) }),
...(programStatus && { enrollmentStatus: programStatus }),
...(enrolledAt && { enrollmentCreatedDate: enrolledAt }),
...(occurredAt && { enrollmentIncidentDate: occurredAt }),
...(followUp && { followUp }),
...(attributeValueFilters?.length > 0 && { attributeValueFilters }),
},
};
Expand Down

0 comments on commit 2983a56

Please sign in to comment.