From eaee826b636269aff62b96bccb9d69d91b695b98 Mon Sep 17 00:00:00 2001 From: Jenn Creighton Date: Fri, 30 Oct 2020 12:42:50 -0400 Subject: [PATCH] Fix error caused by undefined schemas --- src/backend/links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/links.js b/src/backend/links.js index 96ca727a5..b4ae3b339 100755 --- a/src/backend/links.js +++ b/src/backend/links.js @@ -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)); },