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 12:52:25 -07:00 committed by GitHub
parent 05771270e3
commit 8593c55afe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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