смена типа вопроса не уничтожает инфо корня о том что он корень
This commit is contained in:
parent
3bbf8343c2
commit
c9c344c737
@ -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 = "";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user