From 8b64cdf4f2aaa446575e6eca8aef3d912e9ab36e Mon Sep 17 00:00:00 2001 From: Nathan Power Date: Fri, 5 Aug 2022 18:22:15 +1000 Subject: [PATCH] fix(chatbar): fix undefined value from incorrectly being set (#4138) --- components/views/chat/chatbar/Chatbar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/views/chat/chatbar/Chatbar.vue b/components/views/chat/chatbar/Chatbar.vue index 8d09d8e4dd..a5b037edce 100644 --- a/components/views/chat/chatbar/Chatbar.vue +++ b/components/views/chat/chatbar/Chatbar.vue @@ -132,7 +132,7 @@ const Chatbar = Vue.extend({ }, }, mounted() { - const message = this.chat.draftMessages[this.conversationId] + const message = this.chat.draftMessages[this.conversationId] ?? '' this.$store.commit('chat/clearReplyChatbarMessage', { conversationId: this.conversationId, })