TSK-487: Resume draft stuck in Resume state (#2443)

* Fix empty draft check

Signed-off-by: Denis Maslennikov <denis.maslennikov@gmail.com>

* Fix formatting

Signed-off-by: Denis Maslennikov <denis.maslennikov@gmail.com>

Signed-off-by: Denis Maslennikov <denis.maslennikov@gmail.com>
This commit is contained in:
Denis Maslennikov 2022-12-15 15:44:19 +07:00 committed by GitHub
parent c9cf866066
commit fac40733f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,8 +340,6 @@
labels: [], labels: [],
parentIssue: undefined, parentIssue: undefined,
priority: 0, priority: 0,
project: null,
sprint: null,
subIssues: [], subIssues: [],
template: undefined, template: undefined,
title: '' title: ''
@ -359,6 +357,14 @@
return false return false
} }
if (draft.project && draft.project !== defaultIssue.project) {
return false
}
if (draft.sprint && draft.sprint !== defaultIssue.sprint) {
return false
}
if (draft.status === '') { if (draft.status === '') {
return true return true
} }