diff --git a/src/pages/approval-workflows/[id]/index.tsx b/src/pages/approval-workflows/[id]/index.tsx index 6cdaec9a..64a8026e 100644 --- a/src/pages/approval-workflows/[id]/index.tsx +++ b/src/pages/approval-workflows/[id]/index.tsx @@ -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() ) ];