diff --git a/packages/app/src/components/editor/index.tsx b/packages/app/src/components/editor/index.tsx index 46ea39204c..706fe0e9bb 100644 --- a/packages/app/src/components/editor/index.tsx +++ b/packages/app/src/components/editor/index.tsx @@ -37,7 +37,8 @@ export const Editor = ({ page, workspace, setEditor }: Props) => { editor.createBlockHub().then(blockHub => { const toolWrapper = document.querySelector('#toolWrapper'); if (!toolWrapper) { - throw new Error('Can not find toolWrapper'); + // In an invitation page there is no toolWrapper, which contains helper icon and blockHub icon + return; } blockHubElement = blockHub; toolWrapper.appendChild(blockHub);