diff --git a/plugins/tracker-resources/src/components/CreateIssue.svelte b/plugins/tracker-resources/src/components/CreateIssue.svelte index d35d98dbaf..1f91047c3b 100644 --- a/plugins/tracker-resources/src/components/CreateIssue.svelte +++ b/plugins/tracker-resources/src/components/CreateIssue.svelte @@ -47,7 +47,6 @@ export let assignee: Ref | null = null export let project: Ref | null = null - let currentAssignee: Ref | null = assignee let issueStatuses: WithLookup[] | undefined export let parentIssue: Issue | undefined let labels: TagReference[] = [] @@ -56,7 +55,7 @@ let object: AttachedData = { title: '', description: '', - assignee: null, + assignee: assignee, project: project, number: 0, rank: '', @@ -136,7 +135,7 @@ const value: AttachedData = { title: getTitle(object.title), description: object.description, - assignee: currentAssignee, + assignee: object.assignee, project: object.project, number: (incResult as any).object.sequence, status: object.status, @@ -309,7 +308,7 @@ size="small" kind="no-border" width={'min-content'} - on:change={({ detail }) => (currentAssignee = detail)} + on:change={({ detail }) => (object.assignee = detail)} />