Skip to content

Commit 77b997b

Browse files
committed
Remove unused headers
1 parent 189e11b commit 77b997b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/apollo-client-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const middleware = new ApolloLink((operation, forward) => {
2525
const session = localStorage.getItem('woo-session') || 'test'
2626

2727
if (session && session.length > 0) {
28-
operation.setContext(({ headers = {} }) => ({
28+
operation.setContext(() => ({
2929
headers: {
3030
'woocommerce-session': `Session ${session}`,
3131
},

0 commit comments

Comments
 (0)