Fix few issues (#2216)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-07-06 13:53:40 +06:00
committed by GitHub
parent 67d1d92e24
commit 1bc3e96df6
3 changed files with 37 additions and 13 deletions
@@ -31,8 +31,9 @@
if (status.$lookup?.category) {
category = status.$lookup.category
}
category = await client.findOne(tracker.class.IssueStatusCategory, { _id: value.category })
if (category === undefined) {
category = await client.findOne(tracker.class.IssueStatusCategory, { _id: value.category })
}
}
$: updateCategory(value)