It produces the above error while there is no child for a milestone task, and we set true for the open.
However, I am using
apiRef.current.exec('open-task', {
id: task.id,
mode: true,
});
After retrieving the data from the database, I was trying to set the mode to true if this is a summary or a milestone. And getting this "gantt.js:50 Uncaught (in promise) RangeError: Invalid time value" error even after having a child for a milestone task.
If I click the expand button for a milestone task with children, it throws the same invalid time error.
How to resolve this invalid time related issue?