bookmarks: don't fabricate a local save when the server rejects it #121

Merged
admin_emi merged 2 commits from fix/bookmarks-integration into dev 2026-07-26 18:51:03 +00:00
Showing only changes of commit 88403320f1 - Show all commits

View file

@ -111,6 +111,10 @@ function buildStar() {
try {
if (existing) await bookmarks.remove(existing.id);
else await bookmarks.add(loc.lat, loc.lon, currentLabel());
} catch (e) {
// A real server rejection (e.g. the per-user cap) — bookmarks.add() no
// longer fakes a local save for this, so say why nothing changed.
alert(e.message || "Couldn't save this location.");
} finally {
btn.disabled = false;
}