Skip to content

Commit

Permalink
fix: add default object for additionalClients
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Aug 21, 2020
1 parent b62edb1 commit 9452722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const nuxtModule: Module<SanityModuleOptions> = function (moduleOptions) {
withCredentials: options.withCredentials,
token: options.token,
}),
additionalClients: JSON.stringify(options.additionalClients),
additionalClients: JSON.stringify(options.additionalClients || {}),
},
})

Expand Down

0 comments on commit 9452722

Please sign in to comment.