Skip to content

Commit 3ae1f57

Browse files
committed
chore: fix types
1 parent 106bb20 commit 3ae1f57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/devtools/client/composables/state-modules.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function useInstalledModules() {
2929
if (!mod.entryPath)
3030
return undefined!
3131

32-
const isPackageModule = mod.entryPath && isNodeModulePath(mod.entryPath)
32+
const isPackageModule = !!(mod.entryPath && isNodeModulePath(mod.entryPath))
3333
const name = mod.meta?.name
3434
? mod.meta?.name
3535
: mod.entryPath
@@ -40,7 +40,7 @@ export function useInstalledModules() {
4040
: undefined
4141
: undefined
4242

43-
const isUninstallable = config.value?.modules?.includes(name)
43+
const isUninstallable = !!config.value?.modules?.includes(name)
4444
const info = modules.value?.find(m => m.npm === name) || modules.value?.find(m => m.name === name)
4545

4646
return {

0 commit comments

Comments
 (0)