www.spaceplanner.app

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

commit c47107eedcee2f1e59cdbcc72b744f64bcc4c18f
parent 7909b9b9d9c4130fe8ad3f58950b8abcca5a6160
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Mon, 23 Sep 2024 16:23:31 -0700

Only call remove method if door swing exists

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

diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js @@ -692,7 +692,10 @@ export class FloorplanEditor { }, pointmaps: function(id) { editor.draw.findExactlyOne(byId(id)).remove() - editor.draw.findOne(byId(swingID(id))).remove() + let s = editor.draw.findOne(byId(swingID(id))) + if (s != null) { + s.remove() + } }, furniture: function(name) {}, furniture_maps: function(id) {