mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +00:00
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;
|
let resultData = data;
|
||||||
if (maps[endpoint]) {
|
if (maps?.[endpoint]) {
|
||||||
resultData = maps[endpoint](data);
|
resultData = maps[endpoint](data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue