From 4a5752bc4f82438d1ab56cd2df5e82f29d2ebc4e Mon Sep 17 00:00:00 2001 From: Tom Kocourek Date: Wed, 17 May 2023 09:23:14 -0400 Subject: [PATCH] Disabled non-functioning method --- web/src/views/DiscussionsView.vue | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) 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 },