Fix token bar undefined reference
This commit is contained in:
parent
6e164e7f83
commit
70cb5f8f89
@ -61,7 +61,7 @@ function TokenBar({ onMapTokensStateCreate }) {
|
|||||||
setDragId(null);
|
setDragId(null);
|
||||||
|
|
||||||
const mapStage = mapStageRef.current;
|
const mapStage = mapStageRef.current;
|
||||||
if (mapStage) {
|
if (mapStage && overlayNodeClientRect) {
|
||||||
const dragRect = overlayNodeClientRect;
|
const dragRect = overlayNodeClientRect;
|
||||||
const dragPosition = {
|
const dragPosition = {
|
||||||
x: dragRect.left + dragRect.width / 2,
|
x: dragRect.left + dragRect.width / 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user