commit 2893f3be703c1459afceb1e3968c7776ab0777d0 parent 19b5701b5e8b32bacf00b4eb350d3c5e1112f54d Author: Jacob R. Edwards <jacob@jacobedwards.org> Date: Thu, 3 Oct 2024 12:29:41 -0700 Fix select with null list Diffstat:
| M | files/floorplans/floorplan/editor.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js @@ -37,7 +37,7 @@ SVG.extend(SVG.Svg, { select: function(list) { console.debug("Svg.select", list) - if (list.sameElements(this.find(".selected"))) { + if (list && list.sameElements(this.find(".selected"))) { console.log("SVG.select", "Not reselecting") return list }