diff --git a/frontend/js/main.js b/frontend/js/main.js index a29f4e3..bc6dfcc 100644 --- a/frontend/js/main.js +++ b/frontend/js/main.js @@ -4563,6 +4563,12 @@ async function showSessionDetail(sessionId) { map.invalidateSize(); if (allCoords.length > 1) { map.fitBounds(L.latLngBounds(allCoords).pad(0.1)); + } else if (points.length) { + // Degenerate track (a single usable point): fitBounds needs 2+ coords, so + // give the map a view explicitly — otherwise it never fires 'load' and the + // route-overlay `await whenMapReady(map)` below hangs forever, blocking the + // rest of showSessionDetail (including the Delete button binding). + map.setView([points[0].lat, points[0].lon], 15); } mapEl._bounds = allCoords.length > 1 ? L.latLngBounds(allCoords).pad(0.1) : null; diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index f357256..b0dd34d 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -139,7 +139,7 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" [[package]] name = "baldav" -version = "0.1.408" +version = "0.1.409" dependencies = [ "base64 0.22.1", "btleplug", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 2dd8e04..9bc4bf6 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "baldav" -version = "0.1.408" +version = "0.1.409" edition = "2021" [lib] diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3e3d691..337208e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://raw.githubusercontent.com/nicegui/tauri-v2/refs/heads/main/tooling/cli/schema.json", "productName": "BalDav", - "version": "0.1.408", + "version": "0.1.409", "identifier": "dev.baldav.app", "build": { "frontendDist": "../frontend"