From 81ed004ee258e63fb5df6260b209624bc2a267fd Mon Sep 17 00:00:00 2001 From: acnormun Date: Thu, 6 Jun 2024 15:11:09 -0300 Subject: [PATCH] fix: template translation --- src/components/whatsAppTemplates/FormTabContent.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/whatsAppTemplates/FormTabContent.vue b/src/components/whatsAppTemplates/FormTabContent.vue index 941a2061..3ad15c0a 100644 --- a/src/components/whatsAppTemplates/FormTabContent.vue +++ b/src/components/whatsAppTemplates/FormTabContent.vue @@ -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, @@ -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,