diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 22c5ee33c..4df0891e4 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -267,7 +267,8 @@ export default { return false; }, hasWhatsappTemplates() { - return !!this.inbox.message_templates; + return !!this.$store.getters['inboxes/getWhatsAppTemplates'](this.inboxId) + .length; }, enterToSendEnabled() { return !!this.uiSettings.enter_to_send_enabled; diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue index 97cd3c294..8c32159f2 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue @@ -318,7 +318,6 @@