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