fix: Fetch assignable agents in expanded layout (#10540)

This commit is contained in:
Sivin Varghese
2024-12-05 10:56:00 +05:30
committed by GitHub
parent f7b0d5dbe2
commit d635be4b2a

View File

@@ -62,11 +62,14 @@ export default {
}, },
}, },
watch: { watch: {
'currentChat.inbox_id'(inboxId) { 'currentChat.inbox_id': {
immediate: true,
handler(inboxId) {
if (inboxId) { if (inboxId) {
this.$store.dispatch('inboxAssignableAgents/fetch', [inboxId]); this.$store.dispatch('inboxAssignableAgents/fetch', [inboxId]);
} }
}, },
},
'currentChat.id'() { 'currentChat.id'() {
this.fetchLabels(); this.fetchLabels();
this.activeIndex = 0; this.activeIndex = 0;