fix: broken list
This commit is contained in:
@ -83,7 +83,7 @@ export const usePkgStore = defineStore('pkg', {
|
||||
all: (state) => Object.values(state),
|
||||
allLocal: (state) => Object.values(state.pkg).filter((p) => p.loc),
|
||||
hasLocal: (state) => (key: string) =>
|
||||
key in state.pkg && state.pkg[key].loc,
|
||||
state.pkg.hasOwnProperty(key) && state.pkg[key].loc,
|
||||
allRemote: (state) =>
|
||||
Object.values(state.pkg).filter(
|
||||
(p) =>
|
||||
|
Reference in New Issue
Block a user