From c9c344c737ca6d0dda177067e700fa8d4687e64e Mon Sep 17 00:00:00 2001 From: Nastya Date: Fri, 29 Dec 2023 03:16:25 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BC=D0=B5=D0=BD=D0=B0=20=D1=82=D0=B8?= =?UTF-8?q?=D0=BF=D0=B0=20=D0=B2=D0=BE=D0=BF=D1=80=D0=BE=D1=81=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B5=20=D1=83=D0=BD=D0=B8=D1=87=D1=82=D0=BE=D0=B6=D0=B0?= =?UTF-8?q?=D0=B5=D1=82=20=D0=B8=D0=BD=D1=84=D0=BE=20=D0=BA=D0=BE=D1=80?= =?UTF-8?q?=D0=BD=D1=8F=20=D0=BE=20=D1=82=D0=BE=D0=BC=20=D1=87=D1=82=D0=BE?= =?UTF-8?q?=20=D0=BE=D0=BD=20=D0=BA=D0=BE=D1=80=D0=B5=D0=BD=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Questions/DraggableList/ChooseAnswerModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Questions/DraggableList/ChooseAnswerModal.tsx b/src/pages/Questions/DraggableList/ChooseAnswerModal.tsx index e95abc0b..9a46667d 100644 --- a/src/pages/Questions/DraggableList/ChooseAnswerModal.tsx +++ b/src/pages/Questions/DraggableList/ChooseAnswerModal.tsx @@ -139,7 +139,7 @@ export const ChooseAnswerModal = ({ getChildren(question); updateQuestion(question.id, q => { - q.content.rule.parentId = ""; + q.content.rule.parentId === "root" ? "root" : ""; q.content.rule.main = []; q.content.rule.children = []; q.content.rule.default = "";