From 77640c9d16bbd96d09e1f0e313c217d77681d2a0 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 5 May 2025 10:43:45 +0200 Subject: [PATCH] bugfix concernementmapitem this.constraint --- src/components/ConcernementMapItem.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ConcernementMapItem.vue b/src/components/ConcernementMapItem.vue index f27a0a0..2c5f55c 100644 --- a/src/components/ConcernementMapItem.vue +++ b/src/components/ConcernementMapItem.vue @@ -3022,7 +3022,9 @@ export default { x: (this.canvas.width - this.cartouch_width) / 2, y: this.canvas.height / 2 }; - this.constraint.pointA = this.pos; + if (this.constraint) { + this.constraint.pointA = this.pos; + } console.log('resetMapItemPosition', this.cartouch_width, this.pos); Matter.Body.setPosition(this.body, this.pos); },