We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3c3b06d + e75ab19 commit 35030edCopy full SHA for 35030ed
mfes/scp-teacher-repo/src/components/EntityForms/AddEditUser/AddEditUser.tsx
@@ -471,6 +471,12 @@ const AddEditUser = ({
471
};
472
}
473
474
+ // Ensure batch is included from formData or prefilledFormData if missing from payload
475
+ // This handles cases where hidden fields might not be included in the submitted payload
476
+ if (!payload.batch && (formData?.batch || editPrefilledFormData?.batch)) {
477
+ payload.batch = formData?.batch || editPrefilledFormData?.batch;
478
+ }
479
+
480
if (payload.batch) {
481
const cohortIds = payload.batch;
482
// payload.tenantCohortRoleMapping.push(cohortIds);
0 commit comments