Fix critical dbId sync bug causing stale map layers and broken clicks
Deploy TrassenPlaner / deploy (push) Waiting to run
Details
Deploy TrassenPlaner / deploy (push) Waiting to run
Details
This commit is contained in:
parent
8ca453cb87
commit
a144f51fc3
|
|
@ -2790,7 +2790,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const payload = {
|
const payload = {
|
||||||
id: v.id,
|
id: v.dbId,
|
||||||
geometry: {
|
geometry: {
|
||||||
type: "LineString",
|
type: "LineString",
|
||||||
coordinates: latLngs.map(p => [p.lng, p.lat])
|
coordinates: latLngs.map(p => [p.lng, p.lat])
|
||||||
|
|
@ -2817,7 +2817,7 @@
|
||||||
|
|
||||||
const result = await response.json();
|
const result = await response.json();
|
||||||
if (result.success && result.id) {
|
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!");
|
console.log("Speichern in Datenbank erfolgreich!");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue