diff --git a/app/javascript/dashboard/store/modules/inboxes.js b/app/javascript/dashboard/store/modules/inboxes.js index 14bd4c2a9..e642ce5c5 100644 --- a/app/javascript/dashboard/store/modules/inboxes.js +++ b/app/javascript/dashboard/store/modules/inboxes.js @@ -44,13 +44,9 @@ export const getters = { const messagesTemplates = whatsAppMessageTemplates || apiInboxMessageTemplates; - // filtering out the whatsapp templates with media + // Return all WhatsApp templates including media templates if (messagesTemplates instanceof Array) { - return messagesTemplates.filter(template => { - return !template.components.some( - i => i.format === 'IMAGE' || i.format === 'VIDEO' - ); - }); + return messagesTemplates; } return []; },