Fixed the feedback issue

This commit is contained in:
Niharika Goulikar
2024-11-26 12:16:21 +00:00
parent 8d8423b6e0
commit e9a2b8f03a
4 changed files with 36 additions and 14 deletions

View File

@@ -111,7 +111,7 @@ export default function Conversation() {
const handleFeedback = (query: Query, feedback: FEEDBACK, index: number) => {
const prevFeedback = query.feedback;
dispatch(updateQuery({ index, query: { feedback } }));
handleSendFeedback(query.prompt, query.response!, feedback).catch(() =>
handleSendFeedback(query.prompt, query.response!, feedback,conversationId as string,index).catch(() =>
dispatch(updateQuery({ index, query: { feedback: prevFeedback } })),
);
};