Skip to content

Commit 8ec2199

Browse files
committed
nameLocal package
1 parent fa2f989 commit 8ec2199

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

imports/client.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,8 @@ export class DeepClient<L = Link<number>> implements DeepClientInstance<L> {
10661066
const id = typeof(input) === 'number' ? input : input?.id;
10671067
if (!id) return;
10681068
// @ts-ignore
1069-
return this.minilinks.byType[this.idLocal('@deep-foundation/core', 'Contain')]?.find((c: any) => c?.to_id === id)?.value?.value;
1069+
if (this.minilinks.byId[id]?.type_id === this.idLocal('@deep-foundation/core', 'Package')) return this.minilinks.byId[id]?.value?.value;
1070+
return (this.minilinks.byType[this.idLocal('@deep-foundation/core', 'Contain')]?.find((c: any) => c?.to_id === id) as any)?.value?.value;
10701071
}
10711072

10721073
async import(path: string) : Promise<any> {

0 commit comments

Comments
 (0)