diff --git a/src/utils/http.js b/src/utils/http.js index c1439770..32e9a8b4 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -142,7 +142,7 @@ function getTimeout(options, url) { return new Promise((resolve, reject, onCancel) => { const timeoutId = setTimeout(() => { reject(new Error(`URL ${url} timed out`)); - }, (options.timeout || defaultOptions.timeout) + 10000); + }, (options?.timeout || defaultOptions.timeout) + 10000); onCancel(() => clearTimeout(timeoutId)); });