There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: disable blockHub in an invitation page (#945)
x1a0t31878d7fe0c2
diff --git a/packages/app/src/components/editor/index.tsx b/packages/app/src/components/editor/index.tsxindex 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);