From 6591ad02459a3bcb88076b6eb75736db4ee5a0cc Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Wed, 19 Sep 2018 18:54:10 +0200 Subject: [PATCH] api: Fixed client hiding graphql errors --- rpdata/client.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rpdata/client.js b/rpdata/client.js index 3ca3719..9eb743a 100644 --- a/rpdata/client.js +++ b/rpdata/client.js @@ -20,13 +20,6 @@ function query(query, variables = {}, options = {}) { body: JSON.stringify({query: query.length > 256 ? compressQuery(query || "") : query, variables, operationName: options.operationName}), credentials: "include", }).then(res => { - if (!res.ok) { - return Promise.reject([{ - message: `HTTP: ${res.statusText}`, - location: null, - }]) - } - return res.json() }).then(json => { if (json.errors != null && json.errors.length > 0) {