}
// recursively append additional parameters to form data
function appendFormData(parameters, prefix) {
+ if (parameters === null) {
+ return;
+ }
prefix = prefix || "";
Object.entries(parameters).forEach(([key, value]) => {
if (typeof value === "object") {
}
// recursively append additional parameters to form data
- function appendFormData(parameters: object, prefix?: string): void {
+ function appendFormData(parameters: object | null, prefix?: string): void {
+ if (parameters === null) {
+ return;
+ }
+
prefix = prefix || "";
Object.entries(parameters).forEach(([key, value]) => {