fix(core): warning when open center peek (#8819)

This commit is contained in:
EYHN
2024-11-14 09:04:37 +00:00
parent 343152e162
commit c712e87114
2 changed files with 12 additions and 4 deletions

View File

@@ -32,10 +32,6 @@ export type EditorProps = {
};
function usePageRoot(page: Doc) {
if (!page.ready) {
page.load();
}
if (!page.root) {
use(
new Promise<void>((resolve, reject) => {