make sure admin id is passed to step component if the admin is not assigned to the workflow but approved a step.

This commit is contained in:
Joao Correia
2025-02-09 16:55:50 +00:00
parent 6f6c5a4209
commit 9ae6b8e894

View File

@@ -58,7 +58,13 @@ export const getServerSideProps = withIronSessionSsr(async ({ req, res, params }
const allAssigneeIds: string[] = [
...new Set(
workflow.steps
.map(step => step.assignees)
.map((step) => {
const assignees = step.assignees;
if (step.completedBy) {
assignees.push(step.completedBy);
}
return assignees;
})
.flat()
)
];