mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 08:09:52 +08:00
fix: std might not be ready when onLoad invoked (#6075)
This commit is contained in:
@@ -88,6 +88,7 @@ const PageDetailEditorMain = memo(function PageDetailEditorMain({
|
||||
if (onLoad) {
|
||||
// Invoke onLoad once the editor has been mounted to the DOM.
|
||||
editor.updateComplete
|
||||
.then(() => editor.host.updateComplete)
|
||||
.then(() => {
|
||||
disposableGroup.add(onLoad(page, editor));
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user