gantt-lib 0.64.0 → 0.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -7089,7 +7089,8 @@ function GanttChartInner(props, ref) {
7089
7089
  }
7090
7090
  return;
7091
7091
  }
7092
- const cascadedTasks = disableConstraints ? [updatedTask] : universalCascade(updatedTask, newStart, newEnd, tasks, businessDays, isCustomWeekend);
7092
+ const sourceTasks = tasks.map((task) => task.id === updatedTask.id ? updatedTask : task);
7093
+ const cascadedTasks = disableConstraints ? [updatedTask] : universalCascade(updatedTask, newStart, newEnd, sourceTasks, businessDays, isCustomWeekend);
7093
7094
  onTasksChange?.(cascadedTasks);
7094
7095
  }, [tasks, onTasksChange, disableConstraints, editingTaskId, businessDays, isCustomWeekend]);
7095
7096
  const handleDelete = useCallback6((taskId) => {