mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
fix error with no map
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user