When creating a subtask or a new task, is there a way to give it a unique ID? Sometimes when adding a subtask or a task below / above, I get an error message 'bryntum Error: Id collision on _generatedClassDefEx19'.
features: {
taskMenu: {
items: {
add: {
menu: {
subtask: {
onItem: async ({ source: gantt, taskRecord }) => {
// give a unique id when inserting the taskRecord
const task = await gantt.addSubtask(taskRecord);
task.system = gantt.taskStore.first.originalData.system;
task.worktype = gantt.taskStore.first.originalData.worktype;
gantt.project.commitAsync();
}
},