Skip to content

Commit

Permalink
fix: template translation
Browse files Browse the repository at this point in the history
  • Loading branch information
acnormun committed Jun 6, 2024
1 parent 48b2a3a commit 81ed004
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/whatsAppTemplates/FormTabContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
this.$refs.categorySelect.active = false;
},
handleLanguageSelection(value) {
if (!value || value.length === 0) {
if (value.length === 0 && this.templateTranslationSelectedForm !== 'New Language') {
this.setTemplateTranslationCurrentForm = 'New Language';
this.updateTemplateTranslationForm({
formName: this.selectedForm,
Expand All @@ -288,7 +288,9 @@
});
this.$emit('language-change', 'New Language');
return;
} else if (this.templateLanguage === value || value.length > 1) return;
} else if (this.templateLanguage === value || value.length > 1) {
return;
}
this.templateLanguage = value;
const selectedLanguage = this.availableLanguages.find(
(item) => item.value === value[0].value,
Expand Down

0 comments on commit 81ed004

Please sign in to comment.