fix
Some checks failed
Build And Deploy Main / build-and-deploy (push) Failing after 31s

This commit is contained in:
2026-03-09 15:44:21 -04:00
parent d715d2d7fc
commit 3027678ae1
2 changed files with 0 additions and 7 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -29,7 +29,6 @@ const RoutesDashboard = () => {
const drivers = useSelector(selectAllActiveDrivers);
const vehicles = useSelector(selectAllActiveVehicles);
const [showSyncCustomersLoading, setShowSyncCustomersLoading] = useState(false);
const [hasAutoSynced, setHasAutoSynced] = useState(false);
const [keyword, setKeyword] = useState('');
const [directorSignature, setDirectorSignature] = useState(undefined);
@@ -553,12 +552,6 @@ const RoutesDashboard = () => {
setRoutesForShowing(allRoutes);
setRoutesInboundForShowing(inboundRoutes);
setRoutesOutboundForShowing(processRoutesForAbsentCustomers(inboundRoutes, outboundRoutes));
// Auto-sync customer info for today's routes when they first load (only once)
if (allRoutes && allRoutes.length > 0 && !hasAutoSynced && !showSyncCustomersLoading) {
setHasAutoSynced(true);
syncCustomersInfo();
}
} else {
if (dateSelected > new Date()) {
setRoutesForShowing(allTomorrowRoutes);