Merge branch 'dev' into 'main'

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

See merge request frontend/squiz!96
This commit is contained in:
Nastya 2023-12-29 00:16:55 +00:00
commit 316da510f1

@ -139,7 +139,7 @@ export const ChooseAnswerModal = ({
getChildren(question); getChildren(question);
updateQuestion(question.id, q => { updateQuestion(question.id, q => {
q.content.rule.parentId = ""; q.content.rule.parentId === "root" ? "root" : "";
q.content.rule.main = []; q.content.rule.main = [];
q.content.rule.children = []; q.content.rule.children = [];
q.content.rule.default = ""; q.content.rule.default = "";