Commit 992fc6f1 authored by Boris Kocherov's avatar Boris Kocherov

fix rerender side effect

parent 4d3306a1
...@@ -2034,6 +2034,8 @@ ...@@ -2034,6 +2034,8 @@
for_delete = Array.from(root.childNodes); for_delete = Array.from(root.childNodes);
if (opt.schema) { if (opt.schema) {
if (g.props.render_opt.selected_schema) { if (g.props.render_opt.selected_schema) {
g.props.render_opt.selected_schema =
JSON.parse(JSON.stringify(g.props.render_opt.selected_schema));
g.props.render_opt.selected_schema.schema = opt.schema; g.props.render_opt.selected_schema.schema = opt.schema;
} }
g.props.schema_arr[0].schema = opt.schema; g.props.schema_arr[0].schema = opt.schema;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment