Fix critical dbId sync bug causing stale map layers and broken clicks
Deploy TrassenPlaner / deploy (push) Waiting to run Details

This commit is contained in:
Johannes Baumeister 2026-04-20 11:55:17 +02:00
parent 8ca453cb87
commit a144f51fc3
1 changed files with 2 additions and 2 deletions

View File

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