mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
fix(core): warning when open center peek (#8819)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user