Merge branch 'dev' into 'staging'
страница тарифов получает все листы, амо обрабатывает ошибку вопросов See merge request frontend/squiz!354
This commit is contained in:
commit
e210480920
@ -129,11 +129,14 @@ export const AmoCRMModal: FC<IntegrationsModalProps> = ({ isModalOpen, handleClo
|
|||||||
|
|
||||||
if (type === "question") {
|
if (type === "question") {
|
||||||
const q = questions.find(e => e.backendId === Number(id))
|
const q = questions.find(e => e.backendId === Number(id))
|
||||||
|
console.log(q)
|
||||||
|
console.log(questions)
|
||||||
|
console.log(id)
|
||||||
setSelectedQuestions((prevState) => ({
|
setSelectedQuestions((prevState) => ({
|
||||||
...prevState,
|
...prevState,
|
||||||
[scope]: [...prevState[scope as QuestionKeys], {
|
[scope]: [...prevState[scope as QuestionKeys], {
|
||||||
id,
|
id,
|
||||||
title: q.title,
|
title: q?.title || "вопрос",
|
||||||
entity: scope,
|
entity: scope,
|
||||||
}],
|
}],
|
||||||
}));
|
}));
|
||||||
|
|||||||
@ -73,8 +73,8 @@ function TariffPage() {
|
|||||||
|
|
||||||
tariffsList.push(...tariffsResponse.tariffs);
|
tariffsList.push(...tariffsResponse.tariffs);
|
||||||
|
|
||||||
for (let page = 2; page <= tariffsResponse.totalPages; page += 1) {
|
for (let page = 0; page <= tariffsResponse.totalPages; page += 1) {
|
||||||
const [tariffsResult] = await getTariffs(1);
|
const [tariffsResult] = await getTariffs(page);
|
||||||
|
|
||||||
if (tariffsResult) {
|
if (tariffsResult) {
|
||||||
tariffsList.push(...tariffsResult.tariffs);
|
tariffsList.push(...tariffsResult.tariffs);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user