diff options
| author | Claude <noreply@anthropic.com> | 2026-05-20 23:59:20 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-05-20 23:59:20 +0000 |
| commit | e4fb66791269d761a96a97213b3fd6aaeb151772 (patch) | |
| tree | c03a34f8cf5ba5138ca22ae4faa0a42696a0e9a1 /scripts | |
| parent | f12e64422cc6157bf8dbcec272f4dd1f6e74b4f9 (diff) | |
Fix savedTracks silently empty when getSavedTracks() throws
getSavedTracks() was called inside .onSuccess{} with no error boundary;
any exception from toSavedTrack() crashed the coroutine silently after
_pastTracks was already set, leaving _savedTracks empty (tracks visible
on the main map dim layer but missing from the Log tab list).
Wrap every getSavedTracks() call in runCatching, and make toSavedTrack()
inside getSavedTracks() skip individual bad tracks via mapNotNull so one
corrupt GPX can't blank the whole list.
https://claude.ai/code/session_01YUbuZNDAoLea4cf9UGQ9qn
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
