mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
Merge branch 'freight/hot_fix' of github.com:Tria-plc/edr-platform into freight/hot_fix
This commit is contained in:
@@ -36,7 +36,10 @@ export function FinancialReportsPage() {
|
||||
|
||||
const { data: vehicles } = useQuery({
|
||||
queryKey: QUERY_KEYS.VEHICLES.list(),
|
||||
queryFn: () => vehiclesService.getAll({ limit: 1000 }),
|
||||
queryFn: async () => {
|
||||
const res = await vehiclesService.getAll({ limit: 1000 });
|
||||
return res.data || [];
|
||||
},
|
||||
});
|
||||
|
||||
const { data: fuelStats } = useQuery({
|
||||
|
||||
@@ -35,7 +35,10 @@ export function MaintenancePage() {
|
||||
|
||||
const { data: vehicles } = useQuery({
|
||||
queryKey: QUERY_KEYS.VEHICLES.list(),
|
||||
queryFn: () => vehiclesService.getAll({ limit: 1000 }),
|
||||
queryFn: async () => {
|
||||
const res = await vehiclesService.getAll({ limit: 1000 });
|
||||
return res.data || [];
|
||||
},
|
||||
});
|
||||
|
||||
const { data: upcoming, isLoading } = useQuery({
|
||||
|
||||
Reference in New Issue
Block a user