fix: Data validation for scheduled maintenance
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 3m24s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 25s
Deploy to Staging / Verify Staging (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 7s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped

This commit is contained in:
Eric Gullickson
2026-02-11 20:47:46 -06:00
parent 33b489d526
commit 59e7f4053a
4 changed files with 98 additions and 6 deletions

View File

@@ -21,6 +21,7 @@ export function useCreateSchedulesFromExtraction() {
const results: MaintenanceScheduleResponse[] = [];
for (const item of items) {
if (item.subtypes.length === 0) continue;
if (item.intervalMiles === null && item.intervalMonths === null) continue;
const request: CreateScheduleRequest = {
vehicleId,
category: 'routine_maintenance',