fix: Avoid conversationId getting undefined in unattended view (#6001)

This commit is contained in:
Pranav Raj S 2022-11-30 20:37:58 -08:00 committed by GitHub
parent 3083f74d45
commit e35638588a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -450,8 +450,7 @@ export default {
return this.currentChat.id; return this.currentChat.id;
}, },
conversationIdByRoute() { conversationIdByRoute() {
const { conversation_id: conversationId } = this.$route.params; return this.conversationId;
return conversationId;
}, },
editorStateId() { editorStateId() {
return `draft-${this.conversationIdByRoute}-${this.replyType}`; return `draft-${this.conversationIdByRoute}-${this.replyType}`;