fix: Whatsapp template picker bug

- Enforce lowercasing the template status value before checking the value
This commit is contained in:
Fayaz Ahmed
2023-01-19 16:40:46 +05:30
committed by GitHub
parent 6151e42bdf
commit 905fca7869

View File

@@ -69,7 +69,7 @@ export default {
whatsAppTemplateMessages() {
return this.$store.getters['inboxes/getWhatsAppTemplates'](
this.inboxId
).filter(template => template.status === 'approved');
).filter(template => template.status.toLowerCase() === 'approved');
},
filteredTemplateMessages() {
return this.whatsAppTemplateMessages.filter(template =>