Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script lang="ts">
import contact, { Employee } from '@anticrm/contact'
import { Class, Doc, Ref } from '@anticrm/core'
import { Issue, Team } from '@anticrm/tracker'
import { Issue } from '@anticrm/tracker'
import { UsersPopup, getClient } from '@anticrm/presentation'
import { AttributeModel } from '@anticrm/view'
import { eventToHTMLElement, showPopup } from '@anticrm/ui'
Expand All @@ -26,7 +26,6 @@
export let value: Employee | null | undefined
export let issueId: Ref<Issue>
export let defaultClass: Ref<Class<Doc>> | undefined = undefined
export let currentSpace: Ref<Team> | undefined = undefined
export let isEditable: boolean = true
export let shouldShowLabel: boolean = false
export let defaultName: IntlString | undefined = undefined
Expand All @@ -52,7 +51,7 @@
return
}

const currentIssue = await client.findOne(tracker.class.Issue, { space: currentSpace, _id: issueId })
const currentIssue = await client.findOne(tracker.class.Issue, { _id: issueId })

if (currentIssue === undefined) {
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@
value={issue.$lookup?.assignee}
defaultClass={contact.class.Employee}
issueId={issue._id}
{currentSpace}
isEditable={true}
/>
<div class="flex-center mt-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@
value={issue.$lookup?.assignee}
defaultClass={contact.class.Employee}
issueId={issue._id}
{currentSpace}
isEditable={true}
/>
<div class="flex-center mt-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
<svelte:component
this={attributeModel.presenter}
value={getObjectValue(attributeModel.key, docObject) ?? ''}
issueId={docObject._id}
projectId={docObject._id}
{...attributeModel.props}
/>
</div>
Expand Down