Hi,
Having an issue where when adding a new Task to the Gantt, it sets the index to the selected record's index after saving.
Before Adding a new task:
The Save Request when adding a Task:
The Save Response when adding a Task (Filtered out for brevity):
After Adding a new Task (Not letting me add more attachments for some reason):
this.gantt.tasks.map((row) => [row.id, row.name, row.index])
Array(4) [ (3) […], (3) […], (3) […], (3) […] ]
0: Array(3) [ 2635, "Very", 1 ]
1: Array(3) [ 2658, "New Task", 1 ]
2: Array(3) [ 2657, "New Task", 3 ]
3: Array(3) [ 2656, "New Task fdsfd", 4 ]
length: 4
<prototype>: Array []
I was expecting these to be 1,2,3,4 like the other ones above.
I tried to remedy this initially by explicitly setting it before the request was sent to no avail as i found out later.
When reloading the Gantt in its entirety, this has the correct values.
Is there a reason/way to prevent this from happening?
Kind Regards,
Hugh