Skip to content

Commit

Permalink
0.0.201
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Jul 1, 2023
1 parent 69bedbd commit 0acd2c3
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 13 deletions.
5 changes: 3 additions & 2 deletions imports/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1001,8 +1001,9 @@ export class DeepClient<L = Link<number>> implements DeepClientInstance<L> {
}

nameLocal(input: Link<number> | number): string | undefined {
const link: any = typeof(input) === 'number' ? this.minilinks.byId[input] : input;
return link?.inByType?.[this.idLocal('@deep-foundation/core', 'Contain')]?.[0]?.value?.value;
const id = typeof(input) === 'number' ? input : input.id;
// @ts-ignore
return this.minilinks.byType[this.idLocal('@deep-foundation/core', 'Contain')]?.find((c: any) => c?.to_id === id)?.value?.value;
}
}

Expand Down
52 changes: 42 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.200",
"version": "0.0.201",
"license": "Unlicense",
"type": "module",
"scripts": {
Expand Down

0 comments on commit 0acd2c3

Please sign in to comment.