when i refresh the property y_unit, the render is different

I wish to refresh the data on the y_unit like this, where elements are the same at the init and to the refresh:

scheduler.matrix[‘timeline’].y_unit = elements;
scheduler.updateView();

My scheduler has a different render, the elements are collapsed, some tasks showed on the folder (Human Relations Dep.) . Also, I have errors in the console when i click on the second folder (Human Relations Dep.) when I expand it.

A sample:

docs.dhtmlx.com/scheduler/snippet/81d7e907

Hello,

If you want to refresh y_unit properties, better to use serverList and updateCollection methods. See example:
docs.dhtmlx.com/scheduler/snippet/f817837a

docs.dhtmlx.com/scheduler/api__s … rlist.html
docs.dhtmlx.com/scheduler/api__s … ction.html