www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit d5d80ac86b4364c440bbb17b67a393b17ce19f8c
parent 0f0e5750fcd35cd218f7505a4f9915e041f981ec
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Wed,  9 Oct 2024 19:03:09 -0700

Fix putServer id mixup

Because of how put works on the server, new IDs will be generated
for all the objects, so we don't want to have the old_id be a server
id.

Diffstat:
Mfiles/floorplans/floorplan/backend.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/floorplans/floorplan/backend.js b/files/floorplans/floorplan/backend.js @@ -716,7 +716,7 @@ export class FloorplanBackend { // WARNING: This needs a lock let backend = this - return api.fetch("PUT", this.endpoint, this.toServerIDs(this.cache)) + return api.fetch("PUT", this.endpoint, this.cache) .then(function(data) { updateIDs(backend, data) backend.serverPosition = backend.history.place