diff --git a/modules/slowzones/SystemSlowZonesDetails.tsx b/modules/slowzones/SystemSlowZonesDetails.tsx index 764e2d0c..133cda3c 100644 --- a/modules/slowzones/SystemSlowZonesDetails.tsx +++ b/modules/slowzones/SystemSlowZonesDetails.tsx @@ -44,7 +44,7 @@ export function SystemSlowZonesDetails({ showTitle = false }: SystemSlowZonesDet query: { startDate, endDate }, } = useDelimitatedRoute(); - const speedRestrictions = useSpeedRestrictionData({ lineId: line!, date: endDate! }); + const speedRestrictions = useSpeedRestrictionData({ lineId: line, date: endDate! }); const startDateUTC = startDate ? dayjs.utc(startDate).startOf('day') : undefined; const endDateUTC = endDate ? dayjs.utc(endDate).startOf('day') : undefined; diff --git a/tsconfig.json b/tsconfig.json index 9d6b718a..c0f7ee65 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,5 +25,5 @@ ] }, "include": ["next-env.d.ts", "globals.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "*.js"] }