Filter and return only approved templates (#6288)
This commit is contained in:
@@ -67,7 +67,9 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
whatsAppTemplateMessages() {
|
||||
return this.$store.getters['inboxes/getWhatsAppTemplates'](this.inboxId);
|
||||
return this.$store.getters['inboxes/getWhatsAppTemplates'](
|
||||
this.inboxId
|
||||
).filter(template => template.status === 'approved');
|
||||
},
|
||||
filteredTemplateMessages() {
|
||||
return this.whatsAppTemplateMessages.filter(template =>
|
||||
|
||||
Reference in New Issue
Block a user