From 79e109a7206b924d658ef0ed0fa3280926c635cd Mon Sep 17 00:00:00 2001 From: Edwin Guzman Date: Tue, 19 Nov 2024 13:53:20 -0500 Subject: [PATCH] linting error fix --- pages/api/submit.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/api/submit.ts b/pages/api/submit.ts index a0f34d3..99d94f8 100644 --- a/pages/api/submit.ts +++ b/pages/api/submit.ts @@ -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;