Skip to content

Commit ef16731

Browse files
author
Sergei Ogorelkov
authored
Fix assignee / lead presenters (#2226)
Signed-off-by: Sergei Ogorelkov <[email protected]>
1 parent 6429908 commit ef16731

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

plugins/tracker-resources/src/components/issues/AssigneePresenter.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<script lang="ts">
1616
import contact, { Employee } from '@anticrm/contact'
1717
import { Class, Doc, Ref } from '@anticrm/core'
18-
import { Issue, Team } from '@anticrm/tracker'
18+
import { Issue } from '@anticrm/tracker'
1919
import { UsersPopup, getClient } from '@anticrm/presentation'
2020
import { AttributeModel } from '@anticrm/view'
2121
import { eventToHTMLElement, showPopup } from '@anticrm/ui'
@@ -26,7 +26,6 @@
2626
export let value: Employee | null | undefined
2727
export let issueId: Ref<Issue>
2828
export let defaultClass: Ref<Class<Doc>> | undefined = undefined
29-
export let currentSpace: Ref<Team> | undefined = undefined
3029
export let isEditable: boolean = true
3130
export let shouldShowLabel: boolean = false
3231
export let defaultName: IntlString | undefined = undefined
@@ -52,7 +51,7 @@
5251
return
5352
}
5453
55-
const currentIssue = await client.findOne(tracker.class.Issue, { space: currentSpace, _id: issueId })
54+
const currentIssue = await client.findOne(tracker.class.Issue, { _id: issueId })
5655
5756
if (currentIssue === undefined) {
5857
return

plugins/tracker-resources/src/components/issues/Board.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@
169169
value={issue.$lookup?.assignee}
170170
defaultClass={contact.class.Employee}
171171
issueId={issue._id}
172-
{currentSpace}
173172
isEditable={true}
174173
/>
175174
<div class="flex-center mt-2">

plugins/tracker-resources/src/components/issues/KanbanView.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@
242242
value={issue.$lookup?.assignee}
243243
defaultClass={contact.class.Employee}
244244
issueId={issue._id}
245-
{currentSpace}
246245
isEditable={true}
247246
/>
248247
<div class="flex-center mt-2">

plugins/tracker-resources/src/components/projects/ProjectsList.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
<svelte:component
149149
this={attributeModel.presenter}
150150
value={getObjectValue(attributeModel.key, docObject) ?? ''}
151-
issueId={docObject._id}
151+
projectId={docObject._id}
152152
{...attributeModel.props}
153153
/>
154154
</div>

0 commit comments

Comments
 (0)