trying to fix this after page reload

This commit is contained in:
AndzejsP 2023-05-20 16:02:15 +03:00
parent 1be41cbaf1
commit cfdcaf53f8

View File

@ -542,7 +542,11 @@ export default {
const parent = msgObj.user_message_id const parent = msgObj.user_message_id
const discussion_id = msgObj.discussion_id const discussion_id = msgObj.discussion_id
// next statement - incorrect comparison: was '=' and should be '==' // next statement - incorrect comparison: was '=' and should be '=='
this.setDiscussionLoading(discussion_id, true );
if (this.currentDiscussion.id == discussion_id) { if (this.currentDiscussion.id == discussion_id) {
this.isGenerating = true;
const index = this.discussionArr.findIndex((x) => x.parent == parent && x.id == msgObj.ai_message_id) const index = this.discussionArr.findIndex((x) => x.parent == parent && x.id == msgObj.ai_message_id)
const messageItem = this.discussionArr[index] const messageItem = this.discussionArr[index]
if (messageItem) { if (messageItem) {