2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-11 18:02:32 +03:00

fix(fetch): prevent TypeError when config.env is undefined (#7155)

This commit is contained in:
Jane Wangari
2025-10-16 18:20:26 +03:00
committed by GitHub
parent c2911ccc6a
commit 015faeca9f
+1 -1
View File
@@ -262,7 +262,7 @@ const factory = (env) => {
const seedCache = new Map();
export const getFetch = (config) => {
let env = config ? config.env : {};
let env = (config && config.env) || {};
const {fetch, Request, Response} = env;
const seeds = [
Request, Response, fetch