Filter and return only approved templates (#6288)

This commit is contained in:
Fayaz Ahmed 2023-01-19 13:40:50 +05:30 committed by GitHub
parent 83ea2a87e2
commit 6151e42bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 =>