more
This commit is contained in:
@@ -51,7 +51,6 @@ const CaseTypePage = () => {
|
||||
if (selectedCaseTags.length < 5) {
|
||||
const temp = [...selectedCaseTags, item.tagName];
|
||||
setSelectedCaseTags(temp);
|
||||
console.log("selectedCaseTags", selectedCaseTags);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -117,11 +116,21 @@ const CaseTypePage = () => {
|
||||
const valid = validateInput();
|
||||
|
||||
if (valid) {
|
||||
const recordTags = [];
|
||||
selectedCaseTags.forEach((tag) => {
|
||||
parsedTags.forEach((item) => {
|
||||
if (item.tagName.toLowerCase() === tag.toLowerCase()) {
|
||||
recordTags.push(item);
|
||||
}
|
||||
});
|
||||
});
|
||||
console.log("~~~~~~~~~~~~~~~~~~~~recordTags", recordTags);
|
||||
const dataValues = {
|
||||
leadAttorney: leadAttorney,
|
||||
contactEmail: contactEmail,
|
||||
contactName: contactName,
|
||||
clientPosition: radioValue,
|
||||
caseTypeTags: recordTags,
|
||||
};
|
||||
setIsBusy(true);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user