fix: Whatsapp template picker bug
- Enforce lowercasing the template status value before checking the value
This commit is contained in:
@@ -69,7 +69,7 @@ export default {
|
|||||||
whatsAppTemplateMessages() {
|
whatsAppTemplateMessages() {
|
||||||
return this.$store.getters['inboxes/getWhatsAppTemplates'](
|
return this.$store.getters['inboxes/getWhatsAppTemplates'](
|
||||||
this.inboxId
|
this.inboxId
|
||||||
).filter(template => template.status === 'approved');
|
).filter(template => template.status.toLowerCase() === 'approved');
|
||||||
},
|
},
|
||||||
filteredTemplateMessages() {
|
filteredTemplateMessages() {
|
||||||
return this.whatsAppTemplateMessages.filter(template =>
|
return this.whatsAppTemplateMessages.filter(template =>
|
||||||
|
|||||||
Reference in New Issue
Block a user