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); },