Skip to content

Commit

Permalink
Merge pull request #307 from apollographql/schemas-undefined
Browse files Browse the repository at this point in the history
Fix error caused by undefined schemas
  • Loading branch information
jcreighton authored Oct 30, 2020
2 parents a81fc54 + eaee826 commit e169a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export const initLinkEvents = (hook, bridge) => {
// When using Apollo Client local state, we'll add the schema
// manually.
data.extensions = Object.assign({}, data.extensions, {
schemas: [...schemas, apolloClientSchema],
schemas: [...(schemas || []), apolloClientSchema],
});
bridge.send(`link:next:${key}`, JSON.stringify(data));
},
Expand Down

0 comments on commit e169a7b

Please sign in to comment.