- Implement cloning of workflow

- Entity change will now only clear the assignees instead of the whole workflow
- Fix bug where side panel was showing all workflow assignees instead of just selected step assignees
This commit is contained in:
Joao Correia
2025-01-26 04:31:36 +00:00
parent 73610dc273
commit ab81a1753d
5 changed files with 349 additions and 34 deletions

View File

@@ -230,7 +230,7 @@ export default function Home({ user, workflow, workflowAssignees, workflowReques
<div className={"text-base font-medium text-gray-500"}>
One assignee is required to sign off to complete this step:
<div className="flex flex-col gap-2 mt-3">
{workflowAssignees.map(user => (
{workflowAssignees.filter(user => selectedStep.assignees.includes(user.id)).map(user => (
<span key={user.id}>
<UserWithProfilePic
textSize="text-sm"