downvote with reason (#24922)
This commit is contained in:
parent
84d09b8b8a
commit
dd6547de06
6 changed files with 59 additions and 6 deletions
|
|
@ -390,7 +390,7 @@ export const useEmbeddedChatbot = () => {
|
|||
}, [mutateAppConversationData, handleConversationIdInfoChange])
|
||||
|
||||
const handleFeedback = useCallback(async (messageId: string, feedback: Feedback) => {
|
||||
await updateFeedback({ url: `/messages/${messageId}/feedbacks`, body: { rating: feedback.rating } }, isInstalledApp, appId)
|
||||
await updateFeedback({ url: `/messages/${messageId}/feedbacks`, body: { rating: feedback.rating, content: feedback.content } }, isInstalledApp, appId)
|
||||
notify({ type: 'success', message: t('common.api.success') })
|
||||
}, [isInstalledApp, appId, t, notify])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue