TSK-1402: fix default assignee when creating issues (#3159)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-05-15 20:18:41 +05:00 committed by GitHub
parent 8c50419027
commit cb341aba6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,7 +289,7 @@
} }
function updateAssigneeId (object: IssueDraft, currentProject: Project | undefined) { function updateAssigneeId (object: IssueDraft, currentProject: Project | undefined) {
if (object.assignee === undefined && currentProject !== undefined) { if (object.assignee == null && currentProject !== undefined) {
if (currentProject.defaultAssignee !== undefined) { if (currentProject.defaultAssignee !== undefined) {
object.assignee = currentProject.defaultAssignee object.assignee = currentProject.defaultAssignee
} else { } else {