mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08: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]);
|
}, [page]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (page?.id !== pageId) {
|
||||||
|
setPage(pageId ? blockSuiteWorkspace.getPage(pageId) : null);
|
||||||
|
}
|
||||||
|
}, [blockSuiteWorkspace, page?.id, pageId]);
|
||||||
|
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user