From d635be4b2a8eb1d0045b9d2e5a773fa405598fc5 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:56:00 +0530 Subject: [PATCH] fix: Fetch assignable agents in expanded layout (#10540) --- .../widgets/conversation/ConversationBox.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue index a1cb09c82..210357a8b 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue @@ -62,10 +62,13 @@ export default { }, }, watch: { - 'currentChat.inbox_id'(inboxId) { - if (inboxId) { - this.$store.dispatch('inboxAssignableAgents/fetch', [inboxId]); - } + 'currentChat.inbox_id': { + immediate: true, + handler(inboxId) { + if (inboxId) { + this.$store.dispatch('inboxAssignableAgents/fetch', [inboxId]); + } + }, }, 'currentChat.id'() { this.fetchLabels();