Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
bepyan committed Aug 15, 2024
1 parent 1e6338d commit eed3db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/editor/elements/element-helper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function ElementHelper() {
};

return (
document.body &&
typeof window !== "undefined" &&
createPortal(
!editor.state.isPreviewMode && elementRef?.current && (
<div
Expand Down

0 comments on commit eed3db0

Please sign in to comment.