From 56aed96ba81f8915e43ba1f65f0fe7ada6a0a070 Mon Sep 17 00:00:00 2001 From: David Mazza Date: Thu, 17 Oct 2019 21:10:10 -0500 Subject: [PATCH] guard against undefined options to fix #27 --- addon/handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/handler.js b/addon/handler.js index 87177e0..0070743 100644 --- a/addon/handler.js +++ b/addon/handler.js @@ -13,7 +13,7 @@ export const composeCreateGraphQLHandler = let { query, variables } = parseRequest(request.requestBody); let schema = createSchema(rawSchema); - if (options.varsMap) { + if (options && options.varsMap) { deprecate('ember-cli-mirage-graphql varsMap is deprecated, please use argsMap instead', false, { id: 'ember-cli-mirage-graphql.vars-map', until: '1.0.0',