diff --git a/app/models/train-routes/train-routes.ts b/app/models/train-routes/train-routes.ts index 514bc986..4269856c 100644 --- a/app/models/train-routes/train-routes.ts +++ b/app/models/train-routes/train-routes.ts @@ -88,7 +88,8 @@ export const useTrainRoutesStore = create((set, get) => ({ } // We couldn't find routes for the requested date. set({ resultType: "not-found", status: "done" }) - throw new Error("Not found") + // "No routes" is an expected UI state, not an exceptional failure. + return [] }, }))