Skip to content

Commit 97b7cdd

Browse files
committed
Merge branch 'PedroEscudero-Fix-console-issue-when-cancel-search'
2 parents 54f8c5a + d13b0fb commit 97b7cdd

File tree

6 files changed

+12
-3
lines changed

6 files changed

+12
-3
lines changed

dist/apisearch.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Http/AxiosClient.js

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ var AxiosClient = /** @class */ (function (_super) {
7979
var response = new Response_1.Response(axiosResponse.status, axiosResponse.data);
8080
return resolve(response);
8181
})["catch"](function (error) {
82+
if (error.response === undefined) {
83+
return;
84+
}
8285
var response = new Response_1.Response(error.response.status, error.response.data);
8386
return reject(response);
8487
});

src/Http/AxiosClient.ts

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ export class AxiosClient extends Client implements HttpClient {
111111
return resolve(response);
112112
})
113113
.catch((error) => {
114+
if (error.response === undefined) {
115+
return;
116+
}
114117
const response = new Response(
115118
error.response.status,
116119
error.response.data,

0 commit comments

Comments
 (0)