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:
@@ -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()
|
||||
)
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user