diff --git a/src/components/shared/WorkflowDefinitionModal.tsx b/src/components/shared/WorkflowDefinitionModal.tsx index 5eaf509..464b6d5 100644 --- a/src/components/shared/WorkflowDefinitionModal.tsx +++ b/src/components/shared/WorkflowDefinitionModal.tsx @@ -359,7 +359,7 @@ export const WorkflowDefinitionModal = ({ step_type: s.step_type, assignee_type: s.assignee.type, assignee_role_ids: s.assignee.role_ids ?? undefined, - assignee_user_ids: s.assignee.user_ids ?? s.assignee.ids ?? undefined, + assignee_user_ids: s.assignee.user_ids ?? undefined, available_actions: s.available_actions || [], requires_signature: s.requires_signature || false, requires_comment: s.requires_comment || false, diff --git a/src/types/workflow.ts b/src/types/workflow.ts index 47d7f98..c843bda 100644 --- a/src/types/workflow.ts +++ b/src/types/workflow.ts @@ -7,10 +7,7 @@ export interface WorkflowStep { step_type: 'initial' | 'task' | 'approval' | 'terminal'; assignee: { type: 'role' | 'user' | 'originator'; - id?: string | null; - ids?: string[] | null; user_ids?: string[] | null; - role?: string[] | string | null; role_ids?: string[] | null; }; available_actions: string[];