@sunbird-cb/cbp-ai 0.1.53 → 0.1.54

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.
@@ -1307,7 +1307,7 @@ class ApprovalRequestFormComponent {
1307
1307
  }
1308
1308
  };
1309
1309
  if (searchText?.length) {
1310
- requestBody["query"] = searchText;
1310
+ requestBody['request']["query"] = searchText;
1311
1311
  // when searching, start from first page
1312
1312
  requestBody.pageNumber = 0;
1313
1313
  // allow larger page for search if needed
@@ -7059,7 +7059,7 @@ class UpdateDesignationHierarchyComponent {
7059
7059
  sort_order: d.sort_order
7060
7060
  }))
7061
7061
  };
7062
- if (this.department_id) {
7062
+ if (typeof this.department_id === 'string' && this.department_id) {
7063
7063
  payload['department_id'] = this.department_id;
7064
7064
  }
7065
7065
  if (this.state_center_id) {
@@ -12749,7 +12749,7 @@ class DesignationApprovalRequestFormComponent {
12749
12749
  }
12750
12750
  };
12751
12751
  if (searchText?.length) {
12752
- requestBody['searchString'] = searchText;
12752
+ requestBody['request']['query'] = searchText;
12753
12753
  // when searching, start from first page
12754
12754
  requestBody.pageNumber = 0;
12755
12755
  // allow larger page for search if needed