initialised commit on the ui converted in mui to astryx and changed the design to doormile
This commit is contained in:
@@ -50,7 +50,6 @@ import {
|
||||
MdInsights,
|
||||
MdRefresh
|
||||
} from 'react-icons/md';
|
||||
import { CircularProgress } from '@mui/material';
|
||||
import { fetchDeliveries, fetchAppLocations, getRiderPeriodicLogs, fetchRidersLogs, fetchBatchEfficiency } from '../api/api';
|
||||
import {
|
||||
STATUS_STYLES,
|
||||
@@ -1819,7 +1818,7 @@ const Dispatch = ({
|
||||
queryKey: ['deliveryLogs', deliveryid],
|
||||
queryFn: async () => {
|
||||
const res = await axios.get(
|
||||
`${process.env.REACT_APP_URL3}/deliveries/getdeliverylogs/?deliveryid=${deliveryid}`
|
||||
`${process.env.REACT_APP_URL}/deliveries/getdeliverylogs/?deliveryid=${deliveryid}`
|
||||
);
|
||||
// Accept several possible response shapes — the live API has shipped
|
||||
// {details:[…]}, plain arrays, and {data:[…]} variants over time, and
|
||||
@@ -2103,7 +2102,7 @@ const Dispatch = ({
|
||||
setOsrmRoutes(prev => ({ ...prev, [cacheKey]: false }));
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('OSRM Fetch error:', e);
|
||||
logger.error('OSRM Fetch error:', e);
|
||||
osrmRoutesRef.current[cacheKey] = false;
|
||||
setOsrmRoutes(prev => ({ ...prev, [cacheKey]: false }));
|
||||
}
|
||||
@@ -2174,7 +2173,7 @@ const Dispatch = ({
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('OSRM Match error, trying route fallback:', e);
|
||||
logger.warn('OSRM Match error, trying route fallback:', e);
|
||||
}
|
||||
|
||||
// Attempt 2 — waypoint routing through a coarser subsample. Always
|
||||
@@ -2194,7 +2193,7 @@ const Dispatch = ({
|
||||
}
|
||||
storeFailure();
|
||||
} catch (e) {
|
||||
console.error('OSRM Route fallback error:', e);
|
||||
logger.error('OSRM Route fallback error:', e);
|
||||
storeFailure();
|
||||
}
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user