diff --git a/platform/core/src/utils/xhrRetryRequestHook.js b/platform/core/src/utils/xhrRetryRequestHook.js index 3e7f09da2..68d72b435 100644 --- a/platform/core/src/utils/xhrRetryRequestHook.js +++ b/platform/core/src/utils/xhrRetryRequestHook.js @@ -21,6 +21,10 @@ let retryOptions = { ...defaultRetryOptions }; * @returns {XMLHttpRequest} request instance optionally modified */ const xhrRetryRequestHook = (request, metadata) => { + if (!metadata) { + return request; + } + const { url, method } = metadata; function faultTolerantRequestSend(...args) {