diff --git a/core/src/stores/moduleStore.ts b/core/src/stores/moduleStore.ts index 47d52f5..7eaa6a9 100644 --- a/core/src/stores/moduleStore.ts +++ b/core/src/stores/moduleStore.ts @@ -24,5 +24,11 @@ export const useModuleStore = defineStore('moduleStore', { }, }, getters: { + has: (state) => (handleOrNamespace: string) => { + const target = String(handleOrNamespace).toLowerCase(); + return Object.values(state.modules).some( + (mod) => mod && (String(mod.handle).toLowerCase() === target || String(mod.namespace).toLowerCase() === target) + ); + }, }, });