From a0ac009c44b210df4d79ffedbdd892fe7302d22e Mon Sep 17 00:00:00 2001 From: vantezzen Date: Sun, 27 Oct 2019 10:17:47 +0100 Subject: #146 Add possible fix for 1.1.1.1 hack --- src/stores/lib/CachedRequest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stores/lib') diff --git a/src/stores/lib/CachedRequest.js b/src/stores/lib/CachedRequest.js index ac8b2bd81..31c7ce241 100644 --- a/src/stores/lib/CachedRequest.js +++ b/src/stores/lib/CachedRequest.js @@ -39,7 +39,7 @@ export default class CachedRequest extends Request { }), 0); // Issue api call & save it as promise that is handled to update the results of the operation - this._promise = new Promise((resolve, reject) => { + this._promise = new Promise((resolve) => { this._api[this._method](...callArgs) .then((result) => { setTimeout(action(() => { @@ -63,7 +63,7 @@ export default class CachedRequest extends Request { this.wasExecuted = true; this._isWaitingForResponse = false; this._triggerHooks(); - reject(error); + // reject(error); }), 1); })); }); -- cgit v1.2.3-54-g00ecf