www.spaceplanner.app

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

commit 4646faecf4e60be3bf71c4d6400123375294c34e
parent bceff7399772d3490065fc3144015be56e39366f
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Wed,  9 Oct 2024 18:39:00 -0700

Fix backend removeFurniture removing all furniture maps

Diffstat:
Mfiles/floorplans/floorplan/backend.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/files/floorplans/floorplan/backend.js b/files/floorplans/floorplan/backend.js @@ -575,7 +575,9 @@ export class FloorplanBackend { removeFurniture(id, options) { for (let map in this.cache.furniture_maps) { - this.unmapFurniture(map) + if (map.furniture === id) { + this.unmapFurniture(map) + } } this.removeData(id, options) }