From 0cd857d04f7f6b758cf876de3ba2b83b82d7fc8a Mon Sep 17 00:00:00 2001 From: Guy Tepper Date: Sat, 18 Apr 2026 21:46:53 +0200 Subject: [PATCH] Fix not-found route lookup handling --- app/models/train-routes/train-routes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 [] }, }))