fix error with no map
This commit is contained in:
parent
d7a161c088
commit
cf41e988eb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue