diff --git a/site/components.tsx b/site/components.tsx index dbeeb7b0b..44f3b2da2 100644 --- a/site/components.tsx +++ b/site/components.tsx @@ -167,7 +167,9 @@ export const Menu = React.forwardRef( ) export const Portal = ({ children }) => { - return ReactDOM.createPortal(children, document.body) + return typeof document === 'object' + ? ReactDOM.createPortal(children, document.body) + : null } export const Toolbar = React.forwardRef(