From a61651df4b6c1e759cf308212b9272055cf4e9a9 Mon Sep 17 00:00:00 2001 From: Mike Pastore Date: Sun, 24 Mar 2019 16:10:35 -0500 Subject: [PATCH] [BUGFIX canary] Fix options assignment in json-api adapter This should fix many of the partner addon issues. --- addon/adapters/json-api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addon/adapters/json-api.js b/addon/adapters/json-api.js index 14348b3f20a..2ae628ef2ae 100644 --- a/addon/adapters/json-api.js +++ b/addon/adapters/json-api.js @@ -153,6 +153,7 @@ const JSONAPIAdapter = RESTAdapter.extend({ @return {Object} */ ajaxOptions(url, type, options) { + options = options || {}; options.contentType = 'application/vnd.api+json'; let hash = this._super(url, type, options); hash.headers['Accept'] = 'application/vnd.api+json';