Timothy J. Baek 6 月之前
父節點
當前提交
0f4b6cdb67
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/lib/components/chat/Messages/ResponseMessage.svelte

+ 9 - 0
src/lib/components/chat/Messages/ResponseMessage.svelte

@@ -427,7 +427,16 @@
 
 
 				if (tags) {
 				if (tags) {
 					updatedMessage.annotation.tags = tags;
 					updatedMessage.annotation.tags = tags;
+					feedbackItem.data.tags = tags;
+
 					dispatch('save', updatedMessage);
 					dispatch('save', updatedMessage);
+					await updateFeedbackById(
+						localStorage.token,
+						updatedMessage.feedbackId,
+						feedbackItem
+					).catch((error) => {
+						toast.error(error);
+					});
 				}
 				}
 			}
 			}
 		}
 		}