From 0f4b6cdb675a17b0d7a45e23c4454b97f7a4d654 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 23 Oct 2024 20:49:18 -0700 Subject: [PATCH] refac --- src/lib/components/chat/Messages/ResponseMessage.svelte | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 716f533e8..870edfbd0 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -427,7 +427,16 @@ if (tags) { updatedMessage.annotation.tags = tags; + feedbackItem.data.tags = tags; + dispatch('save', updatedMessage); + await updateFeedbackById( + localStorage.token, + updatedMessage.feedbackId, + feedbackItem + ).catch((error) => { + toast.error(error); + }); } } }