From fac40733f4038c1fa183f5143cb07217df91ad5e Mon Sep 17 00:00:00 2001 From: Denis Maslennikov <41147528+disant1@users.noreply.github.com> Date: Thu, 15 Dec 2022 15:44:19 +0700 Subject: [PATCH] TSK-487: Resume draft stuck in Resume state (#2443) * Fix empty draft check Signed-off-by: Denis Maslennikov * Fix formatting Signed-off-by: Denis Maslennikov Signed-off-by: Denis Maslennikov --- .../src/components/CreateIssue.svelte | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/tracker-resources/src/components/CreateIssue.svelte b/plugins/tracker-resources/src/components/CreateIssue.svelte index 192f8e1ac9..0d4aa68c20 100644 --- a/plugins/tracker-resources/src/components/CreateIssue.svelte +++ b/plugins/tracker-resources/src/components/CreateIssue.svelte @@ -340,8 +340,6 @@ labels: [], parentIssue: undefined, priority: 0, - project: null, - sprint: null, subIssues: [], template: undefined, title: '' @@ -359,6 +357,14 @@ return false } + if (draft.project && draft.project !== defaultIssue.project) { + return false + } + + if (draft.sprint && draft.sprint !== defaultIssue.sprint) { + return false + } + if (draft.status === '') { return true }