mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-24 05:22:12 +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', () => {
|
abortController.signal.addEventListener('abort', () => {
|
||||||
blockHubElement?.remove();
|
blockHubElement?.remove();
|
||||||
const toolWrapper = document.querySelector('#toolWrapper');
|
const toolWrapper = document.querySelector('#toolWrapper');
|
||||||
assertEquals(toolWrapper?.childNodes.length, 0);
|
if (toolWrapper) {
|
||||||
|
assertEquals(toolWrapper.childNodes.length, 0);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
editor?.createBlockHub().then(blockHub => {
|
editor?.createBlockHub().then(blockHub => {
|
||||||
|
Loading…
Reference in New Issue
Block a user