Gantt ยท console.warn
gantt: applyEdit for unknown task "{id}" ignored.
Printed by Gantt, prefixed [lattice], since 1.34.0.
Warnings reference › gantt-edit-unknown-*
- Identifier
gantt-edit-unknown-*- Raised by
- Gantt
- Since
- 1.34.0
What happened
applyEdit() carried an id that is not a task in the plan (including id: undefined, which reads as null). Nothing was changed and the previous schedule was returned unchanged.
The fix
Ids are compared as strings, so a numeric id and its string form match but a mismatched type nested inside the patch does not. Check the id against the plan's own tasks.
The smallest fix
gantt.applyEdit({ id: task.id, start: newStart });
Reference
Covered in full at the API reference.