Skip to content

Commit

Permalink
Merge branch 'main' into qa
Browse files Browse the repository at this point in the history
* main:
  linting error fix
  • Loading branch information
EdwinGuzman committed Nov 19, 2024
2 parents 8b994d8 + 79e109a commit 117a3f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/api/submit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ async function serverSubmit(req: NextApiRequest, res: NextApiResponse) {
// All already submitted values are stored here so we dont run validations
// on those values again.
console.log("serverSubmit - req.body.formValues: ", req.body.formValues);
const existingValues = !req.body.formValues ? {} : JSON.parse(req.body.formValues);
const existingValues = !req.body.formValues
? {}
: JSON.parse(req.body.formValues);
const currentPage = req.body.page;
// We don't want these values when we do validation.
delete newSubmittedValues.page;
Expand Down

0 comments on commit 117a3f5

Please sign in to comment.