www.spaceplanner.app

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

commit b630e7b3f9142ef58e2882e47f7c68b2843e053b
parent 0894281e58ec883301036370238c266da1073b87
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Sat, 12 Oct 2024 20:01:57 -0700

Fix use of grouped furniture maps

Wrong variable name. (For both this and the last fix I had forgotten
to restart the site auto-updater before testing.)

Diffstat:
Mfiles/floorplans/floorplan/main.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js @@ -322,15 +322,15 @@ function selectHandler(event, editor, state) { } } - if (groups.furmaps) { - if (groups.furmaps.length !== 1) { + if (groups.furmap) { + if (groups.furmap.length !== 1) { document.querySelectorAll(".furniture_menu").forEach( function(e) { e.remove() } ) } else { - furnitureMenu(editor, groups.furmaps[0]) + furnitureMenu(editor, groups.furmap[0]) } }