fix(planner): hand the day plan's unawaited calls to void

Sonar counts a promise that is neither awaited nor caught as a reliability bug, and it reads every such call in a touched file as new. Each of these already reports its own failure (toast, rollback or the sheet's catch), so they are marked as fire and forget rather than changed.
This commit is contained in:
Maurice
2026-09-29 21:55:03 +02:00
parent fd5afb0fad
commit 91dfab3f4b
4 changed files with 28 additions and 28 deletions
@@ -104,7 +104,7 @@ export function useTripRouteOverview(
if (!loading && reframe) frameRef.current = { tripId, points: next.focusPoints }
setResult({ ...next, focusPoints: loading ? frame : frameRef.current!.points, loading })
}
routeTripLegs(plan, { tripId, signal: controller.signal, onAnswer: routed => publish(routed, true) })
void routeTripLegs(plan, { tripId, signal: controller.signal, onAnswer: routed => publish(routed, true) })
.then(routed => publish(routed, false))
return () => controller.abort()