From 0023bfec6578b0183fe92354d3af4397bc8c7f2d Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 14 Apr 2021 16:10:03 +0100 Subject: [PATCH] fix: don't break if no `apiVersion` is set * not updated types as I think it's reasonable to ask users to pass in the version however closes #120 --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 3a588ea1..8cf35346 100644 --- a/src/client.ts +++ b/src/client.ts @@ -32,7 +32,7 @@ export function createClient (config: SanityConfiguration) { useCdn, projectId, dataset, - apiVersion, + apiVersion = '1', withCredentials, token, } = config