Hello,
Could you please help me with an issue I encountered when upgrading packages to the latest version?
For context, I am updating from 5.6.11 to 6.2.3.
We use a chained task store in Gantt (due to multiple reasons on how we display data in Gantt, and 3 partnered components - SchedulerPro, ResourceHistogram, and ResourceUtilization). Since we updated to the most recent version, task copy & paste started throwing errors when copying a task tree (copying one task still works, though).
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'id')
at gantt.module.js?485648:365:2739285
at Array.forEach (<anonymous>)
at f.<anonymous> (gantt.module.js?485648:365:2739219)
at f.traverse (gantt.module.js?485648:310:326544)
at f.traverse (gantt.module.js?485648:310:326630)
at gantt.module.js?485648:365:2739093
at Array.forEach (<anonymous>)
at TaskCopyPaste.extractAssignments (gantt.module.js?485648:365:2738980)
at TaskCopyPaste.extractParents (gantt.module.js?485648:365:2736738)
at TaskCopyPaste.cloneData (gantt.module.js?485648:338:168721)
If the task store is not chained, it works fine, but we need it to be chained to display everything as we need.
You can reproduce this issue by using this example https://bryntum.com/products/gantt/examples/advanced/ and following the steps from the attached video.
Here's also code snippet used in the video in the devtools:
gantt.store = gantt.store.chain();