@sunbird-cb/cbp-ai 0.1.75 → 0.1.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2172,9 +2172,9 @@ class EditCbpPlanComponent {
2172
2172
  selectedObj = {
2173
2173
  name: selectedDesignation,
2174
2174
  status: 'Active',
2175
- id: 'custom-' + Date.now() + '-' + Math.random(),
2175
+ id: '',
2176
2176
  igot_designation_name: selectedDesignation,
2177
- igot_designation_id: 'custom-' + Date.now() + '-' + Math.random(),
2177
+ igot_designation_id: '',
2178
2178
  };
2179
2179
  }
2180
2180
  // 🔥 Move to top
@@ -10854,7 +10854,7 @@ class RoleMappingGenerationComponent {
10854
10854
  ministryType: ['ministry', Validators.required],
10855
10855
  ministry: [null, Validators.required],
10856
10856
  sectors: [[]],
10857
- departments: [[]],
10857
+ departments: [''],
10858
10858
  additionalDetails: [''],
10859
10859
  additional_document: []
10860
10860
  });
@@ -14124,7 +14124,9 @@ class RoleMappingListComponent {
14124
14124
  state_center_id: this.formData.value.ministry
14125
14125
  };
14126
14126
  if (this.formData.value.departments) {
14127
- obj['department_id'] = this.formData.value.departments;
14127
+ if (typeof this.formData.value.departments === 'string') {
14128
+ obj['department_id'] = this.formData.value.departments;
14129
+ }
14128
14130
  }
14129
14131
  this.sharedService.getMatchedRoleMapping(obj).subscribe((matchedRoleMapping) => {
14130
14132
  console.log('res', res);
@@ -14166,7 +14168,7 @@ class RoleMappingListComponent {
14166
14168
  let obj = {
14167
14169
  state_center_id: this.formData.value.ministry
14168
14170
  };
14169
- if (this.formData.value.departments?.length) {
14171
+ if (typeof this.formData.value.departments === 'string') {
14170
14172
  obj['department_id'] = this.formData.value.departments;
14171
14173
  }
14172
14174
  this.sharedService.getMatchedRoleMapping(obj).subscribe((matchedRoleMapping) => {
@@ -14206,7 +14208,7 @@ class RoleMappingListComponent {
14206
14208
  let obj = {
14207
14209
  state_center_id: this.formData.value.ministry
14208
14210
  };
14209
- if (this.formData.value.departments) {
14211
+ if (typeof this.formData.value.departments === 'string') {
14210
14212
  obj['department_id'] = this.formData.value.departments;
14211
14213
  }
14212
14214
  this.sharedService.getMatchedRoleMapping(obj).subscribe((matchedRoleMapping) => {