From f914eb7b31f9b2d55c7ecb8619b6390a9ebeec4e Mon Sep 17 00:00:00 2001 From: Nastya Date: Mon, 4 Nov 2024 02:27:59 +0300 Subject: [PATCH] fix tag name src/pages/IntegrationsPage/IntegrationsModal/Amo/Tags/AmoTags.tsx --- .../WidgetSetupByType/ContainerWidgetSetup.tsx | 2 +- .../Amo/Questions/AmoQuestions.tsx | 14 +++++++++++++- .../IntegrationsModal/Amo/Tags/AmoTags.tsx | 2 +- .../IntegrationsModal/Amo/useAmoIntegration.ts | 4 ++-- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/pages/InstallQuiz/QuizInstallationCard/WidgetSetupByType/ContainerWidgetSetup.tsx b/src/pages/InstallQuiz/QuizInstallationCard/WidgetSetupByType/ContainerWidgetSetup.tsx index a9553668..4fdb938c 100644 --- a/src/pages/InstallQuiz/QuizInstallationCard/WidgetSetupByType/ContainerWidgetSetup.tsx +++ b/src/pages/InstallQuiz/QuizInstallationCard/WidgetSetupByType/ContainerWidgetSetup.tsx @@ -128,7 +128,7 @@ export default function ContainerWidgetSetup({ step, nextButton }: Props) { maxWidth: "365px", }} > - Quiz будет открыть прямо в том месте, где вы установите код на сайте + Quiz будет открыт прямо в том месте, где вы установите код на сайте diff --git a/src/pages/IntegrationsPage/IntegrationsModal/Amo/Questions/AmoQuestions.tsx b/src/pages/IntegrationsPage/IntegrationsModal/Amo/Questions/AmoQuestions.tsx index cdba06c8..e6835afe 100644 --- a/src/pages/IntegrationsPage/IntegrationsModal/Amo/Questions/AmoQuestions.tsx +++ b/src/pages/IntegrationsPage/IntegrationsModal/Amo/Questions/AmoQuestions.tsx @@ -42,7 +42,7 @@ export const AmoQuestions: FC = ({ selectedCurrentFields, questionsItems, fieldsItems, - selectedQuestions, + selectedQuestions = [], handleAddQuestion, handlePrevStep, handleNextStep, @@ -52,6 +52,18 @@ export const AmoQuestions: FC = ({ onScroll, 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(false); const [activeScope, setActiveScope] = useState(null); const [selectedQuestion, setSelectedQuestion] = useState(null); diff --git a/src/pages/IntegrationsPage/IntegrationsModal/Amo/Tags/AmoTags.tsx b/src/pages/IntegrationsPage/IntegrationsModal/Amo/Tags/AmoTags.tsx index 3e254618..13d7ec94 100644 --- a/src/pages/IntegrationsPage/IntegrationsModal/Amo/Tags/AmoTags.tsx +++ b/src/pages/IntegrationsPage/IntegrationsModal/Amo/Tags/AmoTags.tsx @@ -82,7 +82,7 @@ export const AmoTags: FC = ({ isError={sortedTagsItems.length === 0} constrictor={startConstrictor} /> - { if (isReadyGetFields) { getFields({ - page: pageOfTags, - size: SIZE, + page: pageOfFields, + size: 1000, }).then(([response]) => { if (response && response.items !== null) { const minifiedTags: MinifiedData[] = [];