mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-13 09:08:16 +03:00
fix: assert error when toolWrapper is null (#1048)
This commit is contained in:
parent
e2b17bc310
commit
520076b31d
@ -32,7 +32,9 @@ const BlockHubAppender = () => {
|
||||
abortController.signal.addEventListener('abort', () => {
|
||||
blockHubElement?.remove();
|
||||
const toolWrapper = document.querySelector('#toolWrapper');
|
||||
assertEquals(toolWrapper?.childNodes.length, 0);
|
||||
if (toolWrapper) {
|
||||
assertEquals(toolWrapper.childNodes.length, 0);
|
||||
}
|
||||
});
|
||||
|
||||
editor?.createBlockHub().then(blockHub => {
|
||||
|
Loading…
Reference in New Issue
Block a user