mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-07 08:20:53 +08:00
Fix: safely stringify replacement values
This commit is contained in:
@@ -6,7 +6,7 @@ export function formatApiCall(url, args) {
|
||||
if (key === "url") {
|
||||
value = value.replace(/\/+$/, ""); // remove trailing slashes
|
||||
}
|
||||
return value || "";
|
||||
return value?.toString() || "";
|
||||
};
|
||||
|
||||
return url.replace(find, replace).replace(find, replace);
|
||||
|
||||
Reference in New Issue
Block a user