From cf41e988eb6d6276823c9afc70c4a295af2a0097 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Sat, 17 Sep 2022 08:38:53 +0300 Subject: [PATCH] fix error with no map --- src/utils/proxies/generic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }