mirror of
https://github.com/gethomepage/homepage.git
synced 2026-02-06 07:57:05 +00:00
Fix: safely stringify replacement values
This commit is contained in:
parent
f729290e96
commit
7f1de58e71
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user