From ae36ff9394ecca030a3fb9d2fe29fbe8cedf2321 Mon Sep 17 00:00:00 2001 From: ajaythapliyal Date: Mon, 6 Mar 2023 23:05:21 +0530 Subject: [PATCH] flattens the params --- frontend/src/conversation/conversationApi.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/src/conversation/conversationApi.ts b/frontend/src/conversation/conversationApi.ts index a7a136c8..a0575682 100644 --- a/frontend/src/conversation/conversationApi.ts +++ b/frontend/src/conversation/conversationApi.ts @@ -52,13 +52,8 @@ export function fetchAnswerApi( } export function sendFeedback( - { - prompt, - response, - }: { - prompt: string; - response: string; - }, + prompt: string, + response: string, feedback: FEEDBACK, ) { return fetch(`${apiHost}/api/feedback`, {