Skip to content

Commit

Permalink
fix(generator): form data array add missing parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
anymaniax committed Aug 5, 2021
1 parent 4b2cbcb commit 627c075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/generators/formData.ts
Expand Up @@ -32,7 +32,7 @@ export const generateSchemaFormData = async (
if (property.type === 'object' || property.type === 'array') {
formDataValue = `formData.append('${key}', JSON.stringify(${camel(
propName,
)}${key.includes('-') ? `['${key}']` : `.${key}`})\n`;
)}${key.includes('-') ? `['${key}']` : `.${key}`}))\n`;
} else if (
property.type === 'number' ||
property.type === 'integer' ||
Expand Down

0 comments on commit 627c075

Please sign in to comment.