fix: disable blockHub in an invitation page (#945)
This commit is contained in:
1 parent
6057c5637c
commit
31878d7fe0
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user