Fixed null refrence in token drag overlay
This commit is contained in:
parent
b07b9ff260
commit
6ce3c3bd7e
@ -34,6 +34,9 @@ function TokenDragOverlay({
|
||||
x: pointerPosition.x + mapRect.left,
|
||||
y: pointerPosition.y + mapRect.top,
|
||||
};
|
||||
if (!removeTokenRef.current) {
|
||||
return;
|
||||
}
|
||||
const removeIconPosition = removeTokenRef.current.getBoundingClientRect();
|
||||
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user