mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
fix: switch workspace show startswith error
This commit is contained in:
@@ -27,7 +27,7 @@ export const useLoadPage = () => {
|
||||
if (!workspace) {
|
||||
return;
|
||||
}
|
||||
const page = workspace?.getPage(pageId);
|
||||
const page = pageId ? workspace?.getPage(pageId) : null;
|
||||
if (!page) {
|
||||
const savedPageId = workspace.meta.pageMetas[0]?.id;
|
||||
if (savedPageId) {
|
||||
|
||||
Reference in New Issue
Block a user