Skip to content

Commit

Permalink
fix: don't break if no apiVersion is set
Browse files Browse the repository at this point in the history
* not updated types as I think it's reasonable to ask users to pass in the version however

closes #120
  • Loading branch information
danielroe committed Apr 14, 2021
1 parent 6714db0 commit 0023bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function createClient (config: SanityConfiguration) {
useCdn,
projectId,
dataset,
apiVersion,
apiVersion = '1',
withCredentials,
token,
} = config
Expand Down

0 comments on commit 0023bfe

Please sign in to comment.