UBERF-9448: fix svelte-check (#7975)

Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
Victor Ilyushchenko
2025-02-11 00:47:22 +04:00
committed by GitHub
parent 1053d8f559
commit d66149a010
3 changed files with 7 additions and 12 deletions
@@ -14,7 +14,7 @@
-->
<script lang="ts">
import { Employee, Person, formatName } from '@hcengineering/contact'
import { employeeByIdStore, personIdByAccountId } from '@hcengineering/contact-resources'
import { employeeByIdStore, personRefByPersonIdStore } from '@hcengineering/contact-resources'
import documents, {
DocumentRequest,
emptyBundle,
@@ -53,7 +53,7 @@
DocumentRequest: requests,
DocumentSnapshot: $documentSnapshots
},
(ref) => $personIdByAccountId.get(ref)
(ref) => $personRefByPersonIdStore.get(ref)
)
$: state = (doc ? workflow?.get(doc._id) ?? [] : [])[0]
@@ -6,12 +6,12 @@
emptyBundle,
extractValidationWorkflow
} from '@hcengineering/controlled-documents'
import { SortingOrder } from '@hcengineering/core'
import { createQuery, getClient } from '@hcengineering/presentation'
import { Label, Scroller } from '@hcengineering/ui'
import { personIdByAccountId } from '@hcengineering/contact-resources'
import chunter, { ChatMessage } from '@hcengineering/chunter'
import { personRefByPersonIdStore } from '@hcengineering/contact-resources'
import documentsRes from '../../../plugin'
import {
$controlledDocument as controlledDocument,
@@ -20,7 +20,6 @@
import DocumentApprovalGuideItem from './DocumentApprovalGuideItem.svelte'
import DocumentApprovalItem from './DocumentApprovalItem.svelte'
import RightPanelTabHeader from './RightPanelTabHeader.svelte'
import chunter, { ChatMessage } from '@hcengineering/chunter'
const client = getClient()
const hierarchy = client.getHierarchy()
@@ -52,7 +51,7 @@
DocumentSnapshot: $documentSnapshots,
ChatMessage: messages
},
(ref) => $personIdByAccountId.get(ref)
(ref) => $personRefByPersonIdStore.get(ref)
)
$: validationStates = ((doc ? workflow.get(doc._id) : []) ?? []).slice()