diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-12 16:52:05 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-12-12 16:52:05 +0100 |
| commit | 9d38db605e25febc81f8832f4756cbb6cfc010b8 (patch) | |
| tree | cc8209a567790431cc758028234e9c96ed4696b8 /src/frontend/app/hooks/usePlanner.ts | |
| parent | e7eb57bf492617f2b9be88d46c1cc708a2c17af4 (diff) | |
Fix formatting and errors
Diffstat (limited to 'src/frontend/app/hooks/usePlanner.ts')
| -rw-r--r-- | src/frontend/app/hooks/usePlanner.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/app/hooks/usePlanner.ts b/src/frontend/app/hooks/usePlanner.ts index 8a2959a..6123f8a 100644 --- a/src/frontend/app/hooks/usePlanner.ts +++ b/src/frontend/app/hooks/usePlanner.ts @@ -86,7 +86,7 @@ export function usePlanner() { plan: result, searchTime: time ?? new Date(), arriveBy: arriveByParam, - selectedItineraryIndex: null, + selectedItineraryIndex: undefined, }; localStorage.setItem(STORAGE_KEY, JSON.stringify(toStore)); } catch (err) { @@ -131,7 +131,7 @@ export function usePlanner() { if (stored) { try { const data: StoredRoute = JSON.parse(stored); - data.selectedItineraryIndex = null; + data.selectedItineraryIndex = undefined; localStorage.setItem(STORAGE_KEY, JSON.stringify(data)); } catch (e) { // Ignore |
