Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Create new var
Browse files Browse the repository at this point in the history
  • Loading branch information
ravewebdev committed Sep 21, 2021
1 parent 7e1340b commit 4c2d2d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function insertGfFormEntry(formId, fieldValues) {
}

// Convert File objects to be accepted on WP side.
fieldValues = fieldValues.map((field) => {
const newFieldValues = fieldValues.map((field) => {
if (!field?.fileUploadValues) {
return field
}
Expand All @@ -38,7 +38,7 @@ export default async function insertGfFormEntry(formId, fieldValues) {
// Determine query variables.
const variables = {
formId,
fieldValues
fieldValues: newFieldValues
}

// Execute query.
Expand Down

0 comments on commit 4c2d2d4

Please sign in to comment.