Fix assignee deselect in the "New Issue" dialog (#2223)

Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
Sergei Ogorelkov 2022-07-07 13:04:35 +07:00 committed by GitHub
parent 2450fd0fa9
commit 7f793a7966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,6 @@
export let assignee: Ref<Employee> | null = null
export let project: Ref<Project> | null = null
let currentAssignee: Ref<Employee> | null = assignee
let issueStatuses: WithLookup<IssueStatus>[] | undefined
export let parentIssue: Issue | undefined
let labels: TagReference[] = []
@ -56,7 +55,7 @@
let object: AttachedData<Issue> = {
title: '',
description: '',
assignee: null,
assignee: assignee,
project: project,
number: 0,
rank: '',
@ -136,7 +135,7 @@
const value: AttachedData<Issue> = {
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)}
/>
<Component
is={tags.component.TagsDropdownEditor}