fix examId being cleared when editing approval workflow
This commit is contained in:
@@ -73,13 +73,9 @@ export default function Home({ user, workflow, workflowEntityApprovers }: Props)
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
const editableWorkflow: EditableApprovalWorkflow = {
|
const editableWorkflow: EditableApprovalWorkflow = {
|
||||||
|
...workflow,
|
||||||
id: workflow._id?.toString() ?? "",
|
id: workflow._id?.toString() ?? "",
|
||||||
name: workflow.name,
|
|
||||||
entityId: workflow.entityId,
|
|
||||||
requester: user.id, // should it change to the editor?
|
requester: user.id, // should it change to the editor?
|
||||||
startDate: workflow.startDate,
|
|
||||||
modules: workflow.modules,
|
|
||||||
status: workflow.status,
|
|
||||||
steps: editableSteps,
|
steps: editableSteps,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user