diff --git a/src/containers/Admin/NewsLetterTemplate.jsx b/src/containers/Admin/NewsLetterTemplate.jsx index 27779c4d..a69e3570 100644 --- a/src/containers/Admin/NewsLetterTemplate.jsx +++ b/src/containers/Admin/NewsLetterTemplate.jsx @@ -213,24 +213,6 @@ const NewsLetter = () => { })); }; - // const removeLastTextField = () => { - // const currentFields = additionalFields[selectedTemplate] || []; - // if (currentFields.length > 0) { - // setTemplateInfo((prevTemplateInfo) => { - // const updatedTemplateInfo = { ...prevTemplateInfo }; - // const additionalFields = updatedTemplateInfo[selectedTemplate]?.additionalFields || []; - // additionalFields.pop(); - // updatedTemplateInfo[selectedTemplate].additionalFields = additionalFields; - // return updatedTemplateInfo; - // }); - - // setAdditionalFields((prevFields) => { - // const updatedFields = { ...prevFields }; - // updatedFields[selectedTemplate] = currentFields.slice(0, -1); - // return updatedFields; - // }); - // } - // }; const removeLastTextField = () => { const currentFields = additionalFields[selectedTemplate] || [];