fix tag name src/pages/IntegrationsPage/IntegrationsModal/Amo/Tags/AmoTags.tsx
This commit is contained in:
parent
ee4120d0bc
commit
f914eb7b31
@ -128,7 +128,7 @@ export default function ContainerWidgetSetup({ step, nextButton }: Props) {
|
|||||||
maxWidth: "365px",
|
maxWidth: "365px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Quiz будет открыть прямо в том месте, где вы установите код на сайте
|
Quiz будет открыт прямо в том месте, где вы установите код на сайте
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Typography sx={{ maxWidth: "414px", fontSize: "14px", alignSelf: "start" }}>
|
<Typography sx={{ maxWidth: "414px", fontSize: "14px", alignSelf: "start" }}>
|
||||||
|
|||||||
@ -42,7 +42,7 @@ export const AmoQuestions: FC<Props> = ({
|
|||||||
selectedCurrentFields,
|
selectedCurrentFields,
|
||||||
questionsItems,
|
questionsItems,
|
||||||
fieldsItems,
|
fieldsItems,
|
||||||
selectedQuestions,
|
selectedQuestions = [],
|
||||||
handleAddQuestion,
|
handleAddQuestion,
|
||||||
handlePrevStep,
|
handlePrevStep,
|
||||||
handleNextStep,
|
handleNextStep,
|
||||||
@ -52,6 +52,18 @@ export const AmoQuestions: FC<Props> = ({
|
|||||||
onScroll,
|
onScroll,
|
||||||
titleProps,
|
titleProps,
|
||||||
}) => {
|
}) => {
|
||||||
|
if (!selectedQuestions.hasOwnProperty('Contact')) {
|
||||||
|
selectedQuestions.Contact = []
|
||||||
|
}
|
||||||
|
if (!selectedQuestions.hasOwnProperty('Customer')) {
|
||||||
|
selectedQuestions.Customer = []
|
||||||
|
}
|
||||||
|
if (!selectedQuestions.hasOwnProperty('Company')) {
|
||||||
|
selectedQuestions.Company = []
|
||||||
|
}
|
||||||
|
if (!selectedQuestions.hasOwnProperty('Lead')) {
|
||||||
|
selectedQuestions.Lead = []
|
||||||
|
}
|
||||||
const [isSelection, setIsSelection] = useState<boolean>(false);
|
const [isSelection, setIsSelection] = useState<boolean>(false);
|
||||||
const [activeScope, setActiveScope] = useState<QuestionKeys | null>(null);
|
const [activeScope, setActiveScope] = useState<QuestionKeys | null>(null);
|
||||||
const [selectedQuestion, setSelectedQuestion] = useState<string | null>(null);
|
const [selectedQuestion, setSelectedQuestion] = useState<string | null>(null);
|
||||||
|
|||||||
@ -82,7 +82,7 @@ export const AmoTags: FC<Props> = ({
|
|||||||
isError={sortedTagsItems.length === 0}
|
isError={sortedTagsItems.length === 0}
|
||||||
constrictor={startConstrictor}
|
constrictor={startConstrictor}
|
||||||
/>
|
/>
|
||||||
<ItemsSeactiveScopelectionView
|
<ItemsSelectionView
|
||||||
items={sortedTagsItems}
|
items={sortedTagsItems}
|
||||||
selectedItemId={selectedTag}
|
selectedItemId={selectedTag}
|
||||||
setSelectedItem={setSelectedTag}
|
setSelectedItem={setSelectedTag}
|
||||||
|
|||||||
@ -278,8 +278,8 @@ export const useAmoIntegration = ({ isModalOpen, isTryRemoveAccount, quizID, que
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isReadyGetFields) {
|
if (isReadyGetFields) {
|
||||||
getFields({
|
getFields({
|
||||||
page: pageOfTags,
|
page: pageOfFields,
|
||||||
size: SIZE,
|
size: 1000,
|
||||||
}).then(([response]) => {
|
}).then(([response]) => {
|
||||||
if (response && response.items !== null) {
|
if (response && response.items !== null) {
|
||||||
const minifiedTags: MinifiedData[] = [];
|
const minifiedTags: MinifiedData[] = [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user