mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-03 17:05:16 +03:00
Fix pull request location resolver (#5898)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
631de6038e
commit
9df743b154
@ -1486,7 +1486,9 @@ export async function parseLinkId<T extends Doc> (
|
||||
id: string,
|
||||
_class: Ref<Class<T>>
|
||||
): Promise<Ref<T>> {
|
||||
const provider = providers.find(({ _id }) => _id === _class)
|
||||
const hierarchy = getClient().getHierarchy()
|
||||
const provider =
|
||||
providers.find(({ _id }) => id === _class) ?? providers.find(({ _id }) => hierarchy.isDerived(_class, _id))
|
||||
|
||||
if (provider === undefined) {
|
||||
return id as Ref<T>
|
||||
|
Loading…
Reference in New Issue
Block a user