@mseva/digit-ui-module-sv 1.0.70 → 1.0.72

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.
@@ -13905,13 +13905,13 @@ const ActionModal$4 = ({
13905
13905
  businessService,
13906
13906
  moduleCode
13907
13907
  }) => {
13908
- var _action$assigneeRoles, _action$assigneeRoles2;
13908
+ var _workflowDetails, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6;
13909
13909
  const {
13910
13910
  data: approverData,
13911
13911
  isLoading: PTALoading
13912
13912
  } = Digit.Hooks.useEmployeeSearch(tenantId, {
13913
- roles: action === null || action === void 0 ? void 0 : (_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : (_action$assigneeRoles2 = _action$assigneeRoles.map) === null || _action$assigneeRoles2 === void 0 ? void 0 : _action$assigneeRoles2.call(_action$assigneeRoles, e => ({
13914
- code: e
13913
+ roles: (_workflowDetails = workflowDetails) === null || _workflowDetails === void 0 ? void 0 : (_workflowDetails$data = _workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.initialActionState) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.nextActions) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.filter(ele => (ele === null || ele === void 0 ? void 0 : ele.action) == (action === null || action === void 0 ? void 0 : action.action))) === null || _workflowDetails$data4 === void 0 ? void 0 : (_workflowDetails$data5 = _workflowDetails$data4[0]) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.assigneeRoles) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.map(role => ({
13914
+ code: role
13915
13915
  })),
13916
13916
  isActive: true
13917
13917
  }, {