Skip to content

Commit 270bbef

Browse files
committed
fix: add back default client
1 parent 268ab1b commit 270bbef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/composables/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const createSanityHelper = (options: ClientConfig): SanityHelper => {
3333
export function useSanity(client?: string): SanityHelper
3434
export function useSanity(event?: H3Event, client?: string): SanityHelper
3535
export function useSanity(_event?: H3Event | string, _client?: string): SanityHelper {
36-
const client = typeof _event === 'string' ? _event : _client
36+
const client = typeof _event === 'string' ? _event : _client || 'default'
3737

3838
const nuxtApp = useNuxtApp()
3939
if (nuxtApp._sanity?.[client]) {

0 commit comments

Comments
 (0)