Skip to content

Commit

Permalink
Issue #PS-000 feat: Fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Aug 2, 2024
1 parent 2953e52 commit da043ef
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions src/components/AddFacilitator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,22 @@ const AddFacilitatorModal: React.FC<AddFacilitatorModalprops> = ({
localStorage.getItem('teamLeadApp') ?? ''
);
console.log(teamLeaderData);


if (!isEditModal && teamLeaderData) {
apiBody.customFields.push({
fieldId: '4aab68ae-8382-43aa-a45a-e9b239319857', //teacherData?.state?.blockId,
value: [teamLeaderData?.state?.blockCode],
});
apiBody.customFields.push({
fieldId: '6469c3ac-8c46-49d7-852a-00f9589737c5', //teacherData?.state?.stateId,
value: [teamLeaderData?.state?.stateCode],
});
apiBody.customFields.push({
fieldId: 'b61edfc6-3787-4079-86d3-37262bf23a9e', //teacherData?.state?.districtId,
value: [teamLeaderData?.state?.districtCode],
});
}
}
// apiBody.customFields.push({
// fieldId: teamLeaderData?.state?.blockId,
Expand All @@ -194,6 +210,10 @@ const AddFacilitatorModal: React.FC<AddFacilitatorModalprops> = ({
// fieldId: teamLeaderData?.state?.districtId,
// value: [teamLeaderData?.state?.districtCode],
// });




console.log(apiBody);

try {
Expand Down
4 changes: 2 additions & 2 deletions src/components/ManageUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ const ManageUser: React.FC<ManageUsersProps> = ({
const page = 0;
const filters = {
states: 'MH',
districts: 'PN',
blocks: 'BA',
districts: 'MUM',
blocks: 'BOR',
role: 'Teacher',
status: ['active'],
};
Expand Down

0 comments on commit da043ef

Please sign in to comment.