Skip to content

Commit f042000

Browse files
authored
Missed type error, getting the correct response for the packages (#1059)
1 parent 9c75d4d commit f042000

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/CmdKMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const CmdKMenu = () => {
5252
const response = await axios.post(`/packages/list`, {
5353
owner_github_username: currentUser,
5454
})
55-
return response.data.snippets || []
55+
return response.data.packages || []
5656
},
5757
{
5858
enabled: !!currentUser && !searchQuery,

src/pages/quickstart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const QuickstartPage = () => {
2727
const response = await axios.post(`/packages/list`, {
2828
owner_github_username: currentUser,
2929
})
30-
return response.data.snippets
30+
return response.data.packages
3131
},
3232
)
3333

0 commit comments

Comments
 (0)