commit 413a37b269e644e1586a5c6147c938c46db9716d
parent d7dac7f30bab87f37a4b460afd70c197eb0c0707
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Mon, 23 Sep 2024 10:49:56 -0700
Fix backend mapPoints when options is undefined
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/files/floorplans/floorplan/backend.js b/files/floorplans/floorplan/backend.js
@@ -494,6 +494,7 @@ export class FloorplanBackend {
// Returns map id
mapPoints(type, a, b, options) {
+ options = options ?? {}
if (type != "wall" && type != "door") {
throw new Error("Only walls and doors allowed in pointmap so far")
}