From a144f51fc3a7f9c5f15ac100fbf502c9e7b11ca1 Mon Sep 17 00:00:00 2001 From: Johannes Baumeister Date: Mon, 20 Apr 2026 11:55:17 +0200 Subject: [PATCH] Fix critical dbId sync bug causing stale map layers and broken clicks --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 910f8ee..e890cf1 100644 --- a/index.html +++ b/index.html @@ -2790,7 +2790,7 @@ } const payload = { - id: v.id, + id: v.dbId, geometry: { type: "LineString", coordinates: latLngs.map(p => [p.lng, p.lat]) @@ -2817,7 +2817,7 @@ const result = await response.json(); if (result.success && result.id) { - v.id = result.id; // Sync the database ID back to the state + v.dbId = result.id; // Store dbId separately to maintain internal UI references } console.log("Speichern in Datenbank erfolgreich!"); } catch (err) {