We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2f989 commit 8ec2199Copy full SHA for 8ec2199
imports/client.tsx
@@ -1066,7 +1066,8 @@ export class DeepClient<L = Link<number>> implements DeepClientInstance<L> {
1066
const id = typeof(input) === 'number' ? input : input?.id;
1067
if (!id) return;
1068
// @ts-ignore
1069
- return this.minilinks.byType[this.idLocal('@deep-foundation/core', 'Contain')]?.find((c: any) => c?.to_id === id)?.value?.value;
+ 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;
1071
}
1072
1073
async import(path: string) : Promise<any> {
0 commit comments