fix
This commit is contained in:
1 parent
4c6f21ef78
commit
1b42c0d916
3 files changed
+12
-10
No files matched your search
@@ -10,18 +10,19 @@ const emit = defineEmits<{ created: [issue: Issue] }>()
|
||||
|
||||
const showForm = ref(false)
|
||||
const newIssue = reactive({
|
||||
key: 'type',
|
||||
key: '',
|
||||
title: '',
|
||||
})
|
||||
|
||||
const onCreate = async () => {
|
||||
const projectId = projectStore.current?.id
|
||||
if (!projectId) return
|
||||
const project = projectStore.current
|
||||
if (!project) return
|
||||
|
||||
const created = await issueStore.create({ ...newIssue, projectId })
|
||||
const created = await issueStore.create({ ...newIssue, projectId: project.id, key: project.key })
|
||||
if (!created) return
|
||||
|
||||
emit('created', created)
|
||||
newIssue.key = ''
|
||||
newIssue.title = ''
|
||||
showForm.value = false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user