fix(nodes): guard previewRef in fence tool onGridClick (Sentry MONOREPO-EDITOR-BE/CR) (#434)

Co-authored-by: openclaw-agent <agent@pascal.app>
This commit is contained in:
Anton
2026-06-24 15:52:25 -04:00
committed by GitHub
co-authored by openclaw-agent
parent 05771270e3
commit 8593c55afe
+1
View File
@@ -552,6 +552,7 @@ export const FenceTool: React.FC = () => {
}
const onGridClick = (event: GridEvent) => {
if (!previewRef.current) return
if (buildingState.current === 1 && event.nativeEvent.detail >= 2) {
stopDrafting()
return