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) {