Here's how to reproduce the error.
- Load the Basic demo. It's using Gantt v2.1.2.
- In the code editor, change
new Gantt({
window.gantt = new Gantt({
- In the console, enter this command:
gantt.project.taskStore.add(gantt.project.taskStore.getById(2).copy({deep: true}))
Cannot read property 'constraintType' of undefined
Expected:
The task tree is duplicated successfully
Additional details:
This works fine if I use {deep: false}