Fix change type (#8388)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2025-03-30 14:05:05 +05:00 committed by GitHub
parent 8d2a7b541b
commit d428316dfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@
<script lang="ts">
import { Analytics } from '@hcengineering/analytics'
import { Card, CardEvents, MasterTag } from '@hcengineering/card'
import { AnyAttribute, Class, Doc, fillDefaults, Ref } from '@hcengineering/core'
import { AnyAttribute, Class, ClassifierKind, Doc, fillDefaults, Ref } from '@hcengineering/core'
import { Card as CardModal, createQuery, getClient } from '@hcengineering/presentation'
import { DropdownIntlItem, NestedDropdown } from '@hcengineering/ui'
import { createEventDispatcher } from 'svelte'
@ -96,6 +96,7 @@
if (added.has(_id)) continue
const _class = hierarchy.getClass(_id)
if (_class.label === undefined) continue
if (_class.kind !== ClassifierKind.CLASS) continue
added.add(_id)
const descendants = hierarchy.getDescendants(_id)
const toAdd: Class<Doc>[] = []
@ -103,6 +104,7 @@
if (added.has(desc)) continue
const _class = hierarchy.getClass(desc)
if (_class.label === undefined) continue
if (_class.kind !== ClassifierKind.CLASS) continue
added.add(desc)
toAdd.push(_class)
}