mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 15:46:29 +08:00
fix: assert error when toolWrapper is null (#1048)
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user