diff --git a/src/components/token/TokenBar.js b/src/components/token/TokenBar.js index e01013e..83947a7 100644 --- a/src/components/token/TokenBar.js +++ b/src/components/token/TokenBar.js @@ -61,7 +61,7 @@ function TokenBar({ onMapTokensStateCreate }) { setDragId(null); const mapStage = mapStageRef.current; - if (mapStage) { + if (mapStage && overlayNodeClientRect) { const dragRect = overlayNodeClientRect; const dragPosition = { x: dragRect.left + dragRect.width / 2,