We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0816fc + 77b997b commit c144f5fCopy full SHA for c144f5f
plugins/apollo-client-config.js
@@ -25,7 +25,7 @@ export const middleware = new ApolloLink((operation, forward) => {
25
const session = localStorage.getItem('woo-session') || 'test'
26
27
if (session && session.length > 0) {
28
- operation.setContext(({ headers = {} }) => ({
+ operation.setContext(() => ({
29
headers: {
30
'woocommerce-session': `Session ${session}`,
31
},
0 commit comments