From e35638588a49e3ee90718c125d08017045540bcf Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Wed, 30 Nov 2022 20:37:58 -0800 Subject: [PATCH] fix: Avoid conversationId getting undefined in unattended view (#6001) --- .../dashboard/components/widgets/conversation/ReplyBox.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 3e2dc81a0..e7c825752 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -450,8 +450,7 @@ export default { return this.currentChat.id; }, conversationIdByRoute() { - const { conversation_id: conversationId } = this.$route.params; - return conversationId; + return this.conversationId; }, editorStateId() { return `draft-${this.conversationIdByRoute}-${this.replyType}`;