diff --git a/src/utils/proxies/generic.js b/src/utils/proxies/generic.js index 8954636b5..41c013dbb 100644 --- a/src/utils/proxies/generic.js +++ b/src/utils/proxies/generic.js @@ -24,7 +24,7 @@ export default async function genericProxyHandler(req, res, maps) { }); let resultData = data; - if (maps[endpoint]) { + if (maps?.[endpoint]) { resultData = maps[endpoint](data); }