Skip to content

Commit

Permalink
0.0.123
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Sep 24, 2024
1 parent 9033a0d commit f6340e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions imports/go.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,7 @@ const useHook = function useHook({ path, extendInsert = {}, postfix = 'Hook' })

let _ComponentInserted: any = {};
const selectHandler = async (path: [Id, ...Id[]], go, deep, setLinks, template, extendInsert, postfix) => {
const results = await deep.select(go.loader({ id: { _id: [...path] }, return: { code: { relation: 'to' } } }))
console.log('selectHandler', results);
const results = await deep.select(go.loader({ id: { _id: [...path] }, return: { code: { relation: 'to' } } }));
if (!results?.data?.[0]) return await insertHandler(path, go, deep, setLinks, template, extendInsert, postfix)
else if (results?.data?.[0]?.code) {
setLinks(results);
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/perception-imports",
"version": "0.0.122",
"version": "0.0.123",
"license": "Unlicense",
"type": "module",
"main": "import.js",
Expand All @@ -16,7 +16,7 @@
"app:dev": "npm run app:sync; (cd ../; rm -rf app; npm run dev)"
},
"peerDependencies": {
"@deep-foundation/deeplinks": "^0.0.563",
"@deep-foundation/deeplinks": "^0.0.564",
"react": "^18.3.1"
},
"engines": {
Expand Down

0 comments on commit f6340e1

Please sign in to comment.