From 30bd3d33e04534c4656c9f8438cb6c4784b117ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Tue, 8 Mar 2022 12:48:17 +0100 Subject: [PATCH] If no dragged entity is being transmitted, unset it (fixes #179) --- js/ruler.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ruler.js b/js/ruler.js index 9bc2e93..01c8c70 100644 --- a/js/ruler.js +++ b/js/ruler.js @@ -54,6 +54,9 @@ export function extendRuler() { else this.draggedEntity = canvas.templates.get(data.draggedEntity); } + else { + this.draggedEntity = undefined; + } super.update(data); }