From 4dc04257add9a24a191127df72e906c7f5ac11ab Mon Sep 17 00:00:00 2001 From: Gabriel Horacio Cutrini Date: Mon, 24 Aug 2026 14:28:58 -0300 Subject: [PATCH] fix(query-actions): reject with the actual error, not undefined _fetch caught a failed getAccessToken and returned Promise.reject() with no error, so callers received undefined. Reject with the actual error so a caller can tell why the request failed. --- src/utils/query-actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/query-actions.js b/src/utils/query-actions.js index 18fc0bb0..0469ff61 100644 --- a/src/utils/query-actions.js +++ b/src/utils/query-actions.js @@ -52,7 +52,7 @@ const _fetch = async (endpoint, callback, options = {}) => { } catch (e) { if(typeof callback === 'function') callback(e); - return Promise.reject(); + return Promise.reject(e); } endpoint.addQuery('access_token', accessToken);