Fixed null refrence in token drag overlay

This commit is contained in:
Mitchell McCaffrey 2020-09-06 16:26:55 +10:00
parent b07b9ff260
commit 6ce3c3bd7e

View File

@ -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 (