Skip to content

Commit

Permalink
fix(backport): Uncaught ReferenceError req is not defined at AbortSig…
Browse files Browse the repository at this point in the history
…nal.onCanceled (#6307)
  • Loading branch information
justindhillon committed Mar 21, 2024
1 parent ce46346 commit 92a0454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ module.exports = function xhrAdapter(config) {
if (!request) {
return;
}
reject(!cancel || cancel.type ? new CanceledError(null, config, req) : cancel);
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
request.abort();
request = null;
};
Expand Down

0 comments on commit 92a0454

Please sign in to comment.