From 1695e8651c337f1d2f74054ac82105fd0addeb40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 2 Feb 2023 15:29:04 +0000 Subject: [PATCH] RectangleCanvas.rectangles is a prop, don't init --- ui/src/components/door_map/RectangleCanvas.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/door_map/RectangleCanvas.vue b/ui/src/components/door_map/RectangleCanvas.vue index 74e638d..90305c0 100644 --- a/ui/src/components/door_map/RectangleCanvas.vue +++ b/ui/src/components/door_map/RectangleCanvas.vue @@ -45,7 +45,7 @@ export default class extends Vue { private preview_rect = new Rectangle(); private drag_rect?: Rectangle; private drag_origin = new Vector2D(); - private rectangles: Rectangle[] = []; + private rectangles!: Rectangle[]; private get preview_visible(): boolean { return this.state !== CanvasState.Idle;