Duration changed automatically!

Hello, in my example duration was set on 183 but after parsing Gantt chart, it will automatically be changed to 1, I don’t know why.

this is my example data:

gantt.parse({"data":[
		{"id":1,"text":"Empire Construction","type":"project","progress":0,"open":true,"start_date":"01-07-2020 12:00","end_date":"31-12-2020 12:00","duration":183,"parent":0,"users":[]}],"link":[]});

Hello @Deler_T_Abdolqader,

This issue occurs because of the special behavior of different task types. In the code fragment, you sent, the task has the "type":"project". Projects don’t have their own start/end dates and get by it’s the earliest and latest child.
You can read about task types by the following link:
https://docs.dhtmlx.com/gantt/desktop__task_types.html#projecttasks
If you will change the type to type: task it will be rendered correctly.

Here is a demo for the project with children:
http://snippet.dhtmlx.com/5/e769e5871
Here is a demo for type:task:
http://snippet.dhtmlx.com/5/c897fe10b