Fix: safely stringify replacement values

This commit is contained in:
shamoon 2026-02-05 07:02:07 -08:00
parent f729290e96
commit 7f1de58e71
No known key found for this signature in database

View File

@ -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);