diff --git a/web/src/views/DiscussionsView.vue b/web/src/views/DiscussionsView.vue
index 346f41e3..b65aaef3 100644
--- a/web/src/views/DiscussionsView.vue
+++ b/web/src/views/DiscussionsView.vue
@@ -117,8 +117,9 @@
+
@@ -498,7 +499,8 @@ export default {
//console.log("stream", JSON.stringify(content))
const parent = msgObj.user_message_id
const discussion_id = msgObj.discussion_id
- if (this.currentDiscussion.id = discussion_id) {
+ // next statement - incorrect comparison: was '=' and should be '=='
+ if (this.currentDiscussion.id == discussion_id) {
const index = this.discussionArr.findIndex((x) => x.parent == parent && x.id == msgObj.ai_message_id)
const messageItem = this.discussionArr[index]
if (messageItem) {
@@ -735,7 +737,7 @@ export default {
// Last message contains halucination suppression so we need to update the message content too
const parent = msgObj.parent
const discussion_id = msgObj.discussion_id
- if (this.currentDiscussion.id = discussion_id) {
+ if (this.currentDiscussion.id == discussion_id) {
const index = this.discussionArr.findIndex((x) => x.parent == parent && x.id == msgObj.ai_message_id)
const messageItem = this.discussionArr[index]
if (messageItem) {
@@ -747,13 +749,14 @@ export default {
this.setDiscussionLoading(this.currentDiscussion.id, this.isGenerating)
this.chime.play()
},
- copyToClipBoard(content) {
- this.$refs.toast.showToast("Copied to clipboard successfully")
- nextTick(() => {
- feather.replace()
+ //copyToClipBoard(content) {
- })
- },
+ // this.$refs.toast.showToast("Copied to clipboard successfully")
+ // nextTick(() => {
+ // feather.replace()
+
+ // })
+ //},
closeToast() {
this.showToast = false
},