Merge branch 'freight/hot_fix' of github.com:Tria-plc/edr-platform into freight/hot_fix

This commit is contained in:
yaschalew
2026-06-30 16:11:16 +03:00
2 changed files with 8 additions and 2 deletions

View File

@@ -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({

View File

@@ -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({