Skip to content

Commit

Permalink
🐛 Fix: plugin list search bug
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #1297
  • Loading branch information
Molunerfinn committed Dec 2, 2024
1 parent c9fe402 commit 04140de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/renderer/pages/Plugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ function handleSearchResult (item: INPMSearchResultObject) {
return {
name,
fullName: item.package.name,
author: item.package.author.name,
author: item.package.maintainers[0]?.username || '',
description: item.package.description,
logo: `https://cdn.jsdelivr.net/npm/${item.package.name}/logo.png`,
config: {},
Expand Down
7 changes: 4 additions & 3 deletions src/universal/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,10 @@ interface INPMSearchResultObject {
version: string
description: string
keywords: string[]
author: {
name: string
}
maintainers: Array<{
email: string
username: string
}>
links: {
npm: string
homepage: string
Expand Down

0 comments on commit 04140de

Please sign in to comment.