fix
All checks were successful
Build And Deploy Main / build-and-deploy (push) Successful in 30s

This commit is contained in:
2026-03-19 16:28:22 -04:00
parent 0b72b72fcc
commit 3f6671e32d

View File

@@ -208,7 +208,10 @@ const RouteEdit = () => {
let data = Object.assign({}, currentRoute, {name: routeName, driver: newDriver, vehicle: newVehicle, type: newRouteType, route_customer_list: stabilizedCustomerList});
if (estimatedStartTime && estimatedStartTime !== '') {
data = Object.assign({}, data, {estimated_start_time: combineDateAndTime(currentRoute.schedule_date, estimatedStartTime)})
data = Object.assign({}, data, {estimated_start_time: combineDateAndTime(currentRoute.schedule_date, estimatedStartTime)});
} else {
// Explicitly clear persisted value when user removes estimated start time.
data = Object.assign({}, data, {estimated_start_time: null});
}
let payload = { id: currentRoute?.id, data };
if ((historyRoutes.find(item => item.id === params.id)) || (scheduleDate && new Date(data.schedule_date) > new Date())) {