mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
Fix TSK-96 (#2052)
This commit is contained in:
@@ -86,13 +86,16 @@
|
||||
|
||||
$: areSubIssuesLoading = !subIssues
|
||||
$: parentIssue = issue.$lookup?.attachedTo ? (issue.$lookup?.attachedTo as Issue) : null
|
||||
$: parentIssue &&
|
||||
$: if (parentIssue) {
|
||||
subIssuesQeury.query(
|
||||
tracker.class.Issue,
|
||||
{ space: issue.space, attachedTo: parentIssue._id },
|
||||
(res) => (subIssues = res),
|
||||
{ sort: { modifiedOn: SortingOrder.Descending } }
|
||||
)
|
||||
} else {
|
||||
subIssuesQeury.unsubscribe()
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if parentIssue}
|
||||
|
||||
Reference in New Issue
Block a user