Skip to content

Commit

Permalink
fix: [DHIS2-17161] Do not update attribute values from enrollment Wid…
Browse files Browse the repository at this point in the history
…get (#3601)
  • Loading branch information
JoakimSM authored Apr 29, 2024
1 parent 21d9d6e commit 7750761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const useCommonEnrollmentDomainData = (teiId: string, enrollmentId: strin
id: ({ variables: { teiId: updatedTeiId } }) => updatedTeiId,
params: ({ variables: { programId: updatedProgramId } }) => ({
program: updatedProgramId,
fields: ['enrollments[*],attributes'],
fields: ['enrollments[*,!attributes],attributes'],
}),
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const useEnrollment = ({
resource: 'tracker/enrollments/',
id: ({ variables: { enrollmentId: updatedEnrollmentId } }) => updatedEnrollmentId,
params: {
fields: 'enrollment,trackedEntity,program,status,orgUnit,enrolledAt,occurredAt,followUp,deleted,createdBy,updatedBy,attributes,geometry',
fields: 'enrollment,trackedEntity,program,status,orgUnit,enrolledAt,occurredAt,followUp,deleted,createdBy,updatedBy,geometry',
},
},
}),
Expand Down

0 comments on commit 7750761

Please sign in to comment.