default
1 parent 268ab1b commit 270bbefCopy full SHA for 270bbef
1 file changed
src/runtime/composables/index.ts
@@ -33,7 +33,7 @@ const createSanityHelper = (options: ClientConfig): SanityHelper => {
33
export function useSanity(client?: string): SanityHelper
34
export function useSanity(event?: H3Event, client?: string): SanityHelper
35
export function useSanity(_event?: H3Event | string, _client?: string): SanityHelper {
36
- const client = typeof _event === 'string' ? _event : _client
+ const client = typeof _event === 'string' ? _event : _client || 'default'
37
38
const nuxtApp = useNuxtApp()
39
if (nuxtApp._sanity?.[client]) {
0 commit comments