Added token group null check in tokenDragOverlay
This commit is contained in:
parent
fcbc903d16
commit
d7b866d98d
@ -29,6 +29,10 @@ function TokenDragOverlay({
|
||||
const mapRect = map.getBoundingClientRect();
|
||||
|
||||
function detectRemoveHover() {
|
||||
if (!tokenGroup) {
|
||||
return;
|
||||
}
|
||||
|
||||
const pointerPosition = tokenGroup.getStage().getPointerPosition();
|
||||
const screenSpacePointerPosition = {
|
||||
x: pointerPosition.x + mapRect.left,
|
||||
|
Loading…
Reference in New Issue
Block a user