From 123a26a436db3415aa2e1d8c4a128d17e1c24877 Mon Sep 17 00:00:00 2001 From: IlyaDoronin Date: Mon, 25 Sep 2023 15:35:12 +0300 Subject: [PATCH] fix: settingOpytionsPict logic --- .../OptionsPicture/settingOpytionsPict.tsx | 49 +++++++++++++------ 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/src/pages/Questions/OptionsPicture/settingOpytionsPict.tsx b/src/pages/Questions/OptionsPicture/settingOpytionsPict.tsx index 1f4c65cc..334fe66d 100644 --- a/src/pages/Questions/OptionsPicture/settingOpytionsPict.tsx +++ b/src/pages/Questions/OptionsPicture/settingOpytionsPict.tsx @@ -154,19 +154,22 @@ export default function SettingOpytionsPict({ }) } /> - - updateQuestionsList(quizId, totalIndex, { - content: { - ...listQuestions[quizId][totalIndex].content, - largeCheck: target.checked, - }, - }) - } - /> + {listQuestions[quizId][totalIndex].content.xy !== "1:1" && + listQuestions[quizId][totalIndex].content.format !== "masonry" && ( + + updateQuestionsList(quizId, totalIndex, { + content: { + ...listQuestions[quizId][totalIndex].content, + largeCheck: target.checked, + }, + }) + } + /> + )} - Форма + + Формат + - +