mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): match page preview and page title in page list (#5840)
close TOV-578
This commit is contained in:
@@ -42,5 +42,11 @@ export function useBlockSuiteWorkspacePage(
|
||||
}
|
||||
}, [page]);
|
||||
|
||||
useEffect(() => {
|
||||
if (page?.id !== pageId) {
|
||||
setPage(pageId ? blockSuiteWorkspace.getPage(pageId) : null);
|
||||
}
|
||||
}, [blockSuiteWorkspace, page?.id, pageId]);
|
||||
|
||||
return page;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user