There might not actually be a dragged token when trying to end the measurement
This commit is contained in:
@@ -36,7 +36,7 @@ export async function moveTokens(draggedToken, selectedTokens) {
|
|||||||
await animateTokens.call(this, selectedTokens, draggedToken, rays, wasPaused);
|
await animateTokens.call(this, selectedTokens, draggedToken, rays, wasPaused);
|
||||||
|
|
||||||
// Once all animations are complete we can clear the ruler
|
// Once all animations are complete we can clear the ruler
|
||||||
if (this.draggedToken.id === draggedToken.id)
|
if (this.draggedToken?.id === draggedToken.id)
|
||||||
this._endMeasurement();
|
this._endMeasurement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user