Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 21, 2024
1 parent 106bb20 commit 3ae1f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/devtools/client/composables/state-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function useInstalledModules() {
if (!mod.entryPath)
return undefined!

const isPackageModule = mod.entryPath && isNodeModulePath(mod.entryPath)
const isPackageModule = !!(mod.entryPath && isNodeModulePath(mod.entryPath))
const name = mod.meta?.name
? mod.meta?.name
: mod.entryPath
Expand All @@ -40,7 +40,7 @@ export function useInstalledModules() {
: undefined
: undefined

const isUninstallable = config.value?.modules?.includes(name)
const isUninstallable = !!config.value?.modules?.includes(name)
const info = modules.value?.find(m => m.npm === name) || modules.value?.find(m => m.name === name)

return {
Expand Down

0 comments on commit 3ae1f57

Please sign in to comment.