Skip to content

Commit

Permalink
resolved issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarika-padmanaban committed Dec 13, 2023
1 parent 4724c0a commit 2ddeda9
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/containers/Admin/NewsLetterTemplate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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] || [];

Expand Down

0 comments on commit 2ddeda9

Please sign in to comment.