Product: bryntum/gantt-trial@4.2.4
I am unable to add Subtask using the following code
subtask: {
text: 'Add Sub Component',
onItem: async ({source:gantt, taskRecord }) => {
const task = await gantt.addSubtask(taskRecord);
task.startDate = null;
task.endDate = null;
gantt.project.commitAsync();
}
},