Skip to content

Commit

Permalink
Assignee updated when send to approver from FI
Browse files Browse the repository at this point in the history
  • Loading branch information
deepa-s-13 committed Jul 2, 2024
1 parent 04bb17a commit d76da6e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const CloseBtn = (props) => {
};

const ActionModal = ({ t, action, tenantId, state, id, closeModal, submitAction, actionData, applicationDetails, applicationData, businessService, moduleCode,workflowDetails,blockReason }) => {
console.log("applicationData",applicationData)
console.log("workflowDetails",workflowDetails)
const mutation1 = Digit.Hooks.obps.useObpsAPI(
applicationData?.landInfo?.address?.city ? applicationData?.landInfo?.address?.city : tenantId,
false
Expand Down Expand Up @@ -181,8 +183,8 @@ const ActionModal = ({ t, action, tenantId, state, id, closeModal, submitAction,
action: action?.action,
comment: data?.comments?.length > 0 ? data?.comments : null,
comments: data?.comments?.length > 0 ? data?.comments : null,
assignee: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
assignes: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
assignee: (workflowDetails?.data?.processInstances?.[0]?.state?.applicationStatus==="FIELDINSPECTION_INPROGRESS")? [workflowDetails?.data?.processInstances?.[0]?.assigner?.uuid]: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
assignes: (workflowDetails?.data?.processInstances?.[0]?.state?.applicationStatus==="FIELDINSPECTION_INPROGRESS")? [workflowDetails?.data?.processInstances?.[0]?.assigner?.uuid]: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
varificationDocuments: uploadedFile
? [
{
Expand All @@ -195,7 +197,7 @@ const ActionModal = ({ t, action, tenantId, state, id, closeModal, submitAction,
},
action: action?.action,
comment: data?.comments,
assignee: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
assignee: (workflowDetails?.data?.processInstances?.[0]?.state?.applicationStatus==="FIELDINSPECTION_INPROGRESS")? [workflowDetails?.data?.processInstances?.[0]?.assigner?.uuid]: !selectedApprover?.uuid ? null : [selectedApprover?.uuid],
wfDocuments: uploadedFile
? [
{
Expand Down

0 comments on commit d76da6e

Please sign in to comment.