смена типа вопроса не уничтожает инфо корня о том что он корень

This commit is contained in:
Nastya 2023-12-29 03:16:25 +03:00
parent 3bbf8343c2
commit c9c344c737

@ -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 = "";