From f6c4b9b6600dbde482dfd0402f94b1fd6239315f Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Fri, 11 Oct 2024 15:14:22 -0700 Subject: [PATCH] fix: update custom fields to fix "Error parsing request body into JSON" The `customFields` param expects an array of objects where each object has 2 properties: id and value. This fix ensures the current page is passed in the `value` property. --- src/lib/stores/feedback.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/stores/feedback.ts b/src/lib/stores/feedback.ts index cf5c2093f..309aa2bc6 100644 --- a/src/lib/stores/feedback.ts +++ b/src/lib/stores/feedback.ts @@ -133,7 +133,7 @@ function createFeedbackStore() { // billingPlan, firstname: name || 'Unknown', customFields: [ - { id: '47364', currentPage }, + { id: '47364', value: currentPage }, ...(value ? [{ id: '40655', value }] : []) ], metaFields: {