From eed3db0fe2f741dc711f080161f51cbc9783ba18 Mon Sep 17 00:00:00 2001 From: bepyan Date: Thu, 15 Aug 2024 20:32:49 +0900 Subject: [PATCH] fix: build --- src/components/editor/elements/element-helper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/editor/elements/element-helper.tsx b/src/components/editor/elements/element-helper.tsx index 6d967f1..529e893 100644 --- a/src/components/editor/elements/element-helper.tsx +++ b/src/components/editor/elements/element-helper.tsx @@ -37,7 +37,7 @@ export default function ElementHelper() { }; return ( - document.body && + typeof window !== "undefined" && createPortal( !editor.state.isPreviewMode && elementRef?.current && (