--
This commit is contained in:
parent
72fbb34434
commit
66aea3c6d0
@ -219,6 +219,9 @@ console.log("delete id ", openDelete.id )
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedCurrentFields.forEach((e) => {
|
selectedCurrentFields.forEach((e) => {
|
||||||
|
|
||||||
|
//e.id Field id
|
||||||
|
//e.subtitle FC "id"
|
||||||
FieldsRule.Contact.ContactRuleMap[e.subTitle] = Number(e.id)
|
FieldsRule.Contact.ContactRuleMap[e.subTitle] = Number(e.id)
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -230,14 +233,14 @@ console.log("delete id ", openDelete.id )
|
|||||||
|
|
||||||
console.log(body)
|
console.log(body)
|
||||||
|
|
||||||
if (firstRules) {
|
// if (firstRules) {
|
||||||
setIntegrationRules(quiz.backendId.toString(), body);
|
// setIntegrationRules(quiz.backendId.toString(), body);
|
||||||
} else {
|
// } else {
|
||||||
updateIntegrationRules(quiz.backendId.toString(), body);
|
// updateIntegrationRules(quiz.backendId.toString(), body);
|
||||||
}
|
// }
|
||||||
|
|
||||||
handleCloseModal();
|
// handleCloseModal();
|
||||||
setStep(1);
|
// setStep(1);
|
||||||
};
|
};
|
||||||
const steps = useMemo(
|
const steps = useMemo(
|
||||||
() => [
|
() => [
|
||||||
|
|||||||
@ -57,10 +57,10 @@ export const AmoQuestions: FC<Props> = ({
|
|||||||
console.log(old)
|
console.log(old)
|
||||||
return (
|
return (
|
||||||
[...old, {
|
[...old, {
|
||||||
id: selectedQuestion,
|
id: selectedField,
|
||||||
title: questionsItems.find(e => e.id === selectedQuestion)?.title,
|
title: questionsItems.find(e => e.id === selectedQuestion)?.title,
|
||||||
entity: activeScope,
|
entity: activeScope,
|
||||||
subTitle: selectedField
|
subTitle: selectedQuestion
|
||||||
}]
|
}]
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|||||||
@ -83,8 +83,8 @@ export const EntitiesQuestions: FC<ItemsSelectionViewProps> = ({
|
|||||||
{
|
{
|
||||||
isCurrentFields ?
|
isCurrentFields ?
|
||||||
<CurrentFields
|
<CurrentFields
|
||||||
items={items}
|
items={activeScope === "Contact" ? [...FieldsAllowedFC, ...items] : items}
|
||||||
fieldsItems={[...FieldsAllowedFC, ...fieldsItems].filter(e => e.entity === activeScope)}
|
fieldsItems={fieldsItems.filter(e => e.entity === activeScope)}
|
||||||
currentField={selectedField}
|
currentField={selectedField}
|
||||||
currentQuestion={selectedItemId}
|
currentQuestion={selectedItemId}
|
||||||
setCurrentField={setSelectedField}
|
setCurrentField={setSelectedField}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user